private void bt_dmPhucap_ItemClick(object sender, ItemClickEventArgs e) { frmPhucap frm = new frmPhucap(); 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_phucap_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e) { frmPhucap frm = new frmPhucap(); foreach (System.Windows.Forms.Form _mdi_child in this.MdiChildren) { if (frm.Name == _mdi_child.Name) { _mdi_child.Close(); } } frm.MdiParent = this; frm.Show(); }