private void frmMain_Load(object sender, EventArgs e) { this.v_ds_phanmanhTableAdapter.Fill(this.dS_PHANMANH.v_ds_phanmanh); Program.bds_dspm = bds_ds_phanmanh; frmDangnhap f = new frmDangnhap(); f.MdiParent = this; f.Show(); }
private void lbThoat_Click(object sender, EventArgs e) { lbThoat.Visible = false; rbDangnhap.Enabled = true; frmDangnhap f = new frmDangnhap(); f.MdiParent = this; f.Show(); this.MA.Text = ""; this.HOTEN.Text = ""; this.NHOM.Text = ""; }
private void btnDangnhap_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Form f = this.CheckExists(typeof(frmDangnhap)); if (f != null) { f.Activate(); } else { f = new frmDangnhap(); f.MdiParent = this; f.Show(); } }
private void btnDangxuat_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { rbMenu.Visible = rbGV.Visible = rbSV.Visible = false; rb1.Visible = true; rbDangnhap.Enabled = true; btnDangnhap.Enabled = true; btnDangxuat.Enabled = false; Form frm; foreach (Form f in this.MdiChildren) { f.Close(); } frm = new frmDangnhap(); frm.MdiParent = this; frm.Show(); this.MA.Text = ""; this.HOTEN.Text = ""; this.NHOM.Text = ""; }