Пример #1
0
        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;
        }
Пример #2
0
        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;
        }
Пример #3
0
        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;
        }