Exemplo n.º 1
0
        private void navBarItemNhapxuatTufileExcel_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            frmNhapXuatNhanvienExcel nx = new frmNhapXuatNhanvienExcel();

            foreach (System.Windows.Forms.Form _mdi_child in this.MdiChildren)
            {
                if (nx.Name == _mdi_child.Name)
                {
                    _mdi_child.Close();
                }
            }
            nx.MdiParent = this;
            nx.Show();
        }
Exemplo n.º 2
0
        private void barButtonItem1_ItemClick(object sender, ItemClickEventArgs e)
        {
            frmNhapXuatNhanvienExcel nx = new frmNhapXuatNhanvienExcel();

            foreach (System.Windows.Forms.Form _mdi_child in this.MdiChildren)
            {
                if (nx.Name == _mdi_child.Name)
                {
                    _mdi_child.Close();
                }
            }
            nx.MdiParent = this;
            nx.Show();
        }