Example #1
0
        private void toolStripMenuItem5_Click(object sender, EventArgs e)
        {
            frmUnit obj = new frmUnit();

            obj.MdiParent = this;
            obj.Show();
        }
Example #2
0
 private void unitToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (unit.IsDisposed)
     {
         unit = new frmUnit();
     }
     unit.MdiParent = this;
     unit.Show();
     unit.BringToFront();
 }
Example #3
0
        private void barButtonItem6_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form f = IsActive(typeof(frmUnit));

            if (f == null)
            {
                Form frmUnit = new frmUnit();
                frmUnit.MdiParent = this;
                frmUnit.Show();
            }
            else
            {
                f.Activate();
            }
        }
Example #4
0
        private void BtnDVT_ItemClick(object sender, ItemClickEventArgs e)
        {
            Form f = IsActive(typeof(frmUnit));

            if (f == null)
            {
                VaiTro_ChucNangDTO pqdvt = btnDonViTinh.Tag as VaiTro_ChucNangDTO;

                frmUnit frmUnit = new frmUnit(pqdvt, username);
                frmUnit.ThemNhatKyHeThong += ThemNhatKy_Main;
                frmUnit.MdiParent          = this;
                frmUnit.Show();
            }
            else
            {
                f.Activate();
            }
        }