Пример #1
0
        private void navBar_NvVaoLam_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            Rpt_bctheongaylamviec frm = new Rpt_bctheongaylamviec();

            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 bt_NvVaolamtheongay_ItemClick(object sender, ItemClickEventArgs e)
        {
            Rpt_bctheongaylamviec frm = new Rpt_bctheongaylamviec();

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