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