示例#1
0
        private void barbt_taikhoan_ItemClick(object sender, ItemClickEventArgs e)
        {
            frmTaikhoan frm = new frmTaikhoan(dt.Rows[0]["ten"].ToString(), dt.Rows[0]["quyen"].ToString());

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

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