示例#1
0
        private void MoFormDangNhap()
        {
            ucDangNhap ucDN = new ucDangNhap();

            ucDN.SK_DN_ThanhCong += XuLyKhiDangNhapThanhCong;
            pnlMain.Controls.Add(ucDN);
        }
示例#2
0
 private void XuLyDangXuat()
 {
     this.Controls.Clear();
     ucDN = new ucDangNhap();
     ucDN.xuLyDangNhap += XuLyDangNhapThanhCong;
     this.Controls.Add(ucDN);
     ucDN.Dock = DockStyle.Fill;
 }
示例#3
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            _frmMain = this;
            ucDangNhap ucDN = new ucDangNhap();

            ucDN.Dock = DockStyle.Fill;
            _frmMain.MetroContainer.Controls.Add(ucDN);
            _frmMain.MetroContainer.Controls["ucDangNhap"].BringToFront();
        }
示例#4
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            ucDN = new ucDangNhap();
            ucDN.xuLyDangNhap += XuLyDangNhapThanhCong;
            this.Controls.Add(ucDN);
            ucDN.Dock = DockStyle.Fill;

            // ==
            Program.xuLyThoat += Thoat;
        }