Exemplo n.º 1
0
        private void navBarItem_Bangcong_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            frmBangcong frm = new frmBangcong();

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

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