示例#1
0
        private void navBarItem_QlDMLuong_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            frmBangluong frm = new frmBangluong();

            foreach (System.Windows.Forms.Form _mdi_child in this.MdiChildren)
            {
                if (frm.Name == _mdi_child.Name)
                {
                    _mdi_child.Close();
                }
            }
            frm.MdiParent = this;
            frm.Show();
        }
示例#2
0
        private void barButtonItem5_ItemClick(object sender, ItemClickEventArgs e)
        {
            frmBangluong frm = new frmBangluong();

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