using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Password_Manager { public sealed partial class MainForm : PasswordManagerForm { public override event ProfileDataRequest CurrentProfilePathRequest; public override event ProfileDataRequest CurrentProfileNameRequest; public override event ProfileList CurrentProfileListRequest; public override event ProfileChange CurrentProfileChanged; public override event Save SaveRequest; public override event NewProfile NewProfileRequest; public MainForm( ProfileDataRequest CurrentProfileNameRequest, ProfileDataRequest CurrentProfilePathRequest, ProfileList CurrentProfileListRequest, ProfileChange CurrentProfileChanged, Save SaveRequest, NewProfile NewProfileRequest) { this.CurrentProfileNameRequest = CurrentProfileNameRequest; this.CurrentProfilePathRequest = CurrentProfilePathRequest; this.CurrentProfileListRequest = CurrentProfileListRequest; this.CurrentProfileChanged = CurrentProfileChanged; this.SaveRequest = SaveRequest; this.NewProfileRequest = NewProfileRequest; InitializeComponent(); RefreshCurrentProfile(); SaveRequest(); } } }