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