private void btnDangXuat_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { int x = xtraTabControl1.TabPages.Count; for (int i = 0; i < x; i++) { xtraTabControl1.TabPages.RemoveAt(0); } m_FrmDangNhap = new FormDangNhap(); FormMain_Load(sender, e); btnDangNhap.Enabled = true; }
private void btnDangNhapLai_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (MessageBox.Show("Đăng nhập lại", "Thông báo", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK) { int x = xtraTabControl1.TabPages.Count; for (int i = 0; i < x; i++) { xtraTabControl1.TabPages.RemoveAt(0); } m_FrmDangNhap = new FormDangNhap(); FormMain_Load(sender, e); DangNhap(); } }
private void btnDangNhap_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { m_FrmDangNhap = new FormDangNhap(); DangNhap(); }