예제 #1
0
        private void bt_dmCongdoan_ItemClick(object sender, ItemClickEventArgs e)
        {
            frmCongdoan frm = new frmCongdoan();

            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 navBar_Congdoan_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            frmCongdoan frm = new frmCongdoan();

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