private void Frm_Main_Shown(object sender, EventArgs e) { Form frm = this.CheckExists(typeof(Frm_DangNhap)); if (frm != null) { frm.Activate(); } else { Frm_DangNhap f = new Frm_DangNhap(); f.MdiParent = this; f.Show(); } }
private void btnDangNhap_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Form frm = this.CheckExists(typeof(Frm_DangNhap)); if (frm != null) { frm.Activate(); } else { Frm_DangNhap f = new Frm_DangNhap(); f.MdiParent = this; f.Show(); } }