private void bt_dmCongdoan_ItemClick(object sender, ItemClickEventArgs e) { frmCongdoan frm = new frmCongdoan(); foreach (System.Windows.Forms.Form _mdi_child in this.MdiChildren) { if (frm.Name == _mdi_child.Name) { _mdi_child.Close(); } } frm.MdiParent = this; frm.Show(); }
private void navBar_Congdoan_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e) { frmCongdoan frm = new frmCongdoan(); foreach (System.Windows.Forms.Form _mdi_child in this.MdiChildren) { if (frm.Name == _mdi_child.Name) { _mdi_child.Close(); } } frm.MdiParent = this; frm.Show(); }