public FormLogin() { InitializeComponent(); this.Load += (s, e) => Form_Restore.LoadPosSize(this, FORM_NAME); this.FormClosed += (s, e) => Form_Restore.SavePosSize(this, FORM_NAME); //this.Load += FormLogin_Load; //btnLogin.Click += btnLogin_Click; }
public FormRecordDetail(Mode mode, PubMemo srcItem) { InitializeComponent(); this.Load += (s, e) => Form_Restore.LoadPosSize(this, FORM_NAME); this.FormClosed += (s, e) => Form_Restore.SavePosSize(this, FORM_NAME); //this.Load += FormRecordDetail_Load; this.mode = mode; this.srcItem = srcItem; }
public FormMain(FormLogin formLogin, LoginInfomation loginInfo) { InitializeComponent(); this.Load += (s, e) => Form_Restore.LoadPosSize(this, FORM_NAME); this.FormClosed += (s, e) => Form_Restore.SavePosSize(this, FORM_NAME); //this.Load += FormMain_Load; //this.FormClosed += FormMain_FormClosed; this.formLogin = formLogin; this.loginInfo = loginInfo; menuLogout.Click += menuLogout_Click; menuExit.Click += menuExit_Click; }