Exemplo n.º 1
0
        private void MoFormDangNhap()
        {
            ucDangNhap ucDN = new ucDangNhap();

            ucDN.SK_DN_ThanhCong += XuLyKhiDangNhapThanhCong;
            pnlMain.Controls.Add(ucDN);
        }
Exemplo n.º 2
0
 private void XuLyDangXuat()
 {
     this.Controls.Clear();
     ucDN = new ucDangNhap();
     ucDN.xuLyDangNhap += XuLyDangNhapThanhCong;
     this.Controls.Add(ucDN);
     ucDN.Dock = DockStyle.Fill;
 }
Exemplo n.º 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();
        }
Exemplo n.º 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;
        }