private void toolStripMenuItem5_Click(object sender, EventArgs e) { frmUnit obj = new frmUnit(); obj.MdiParent = this; obj.Show(); }
private void unitToolStripMenuItem_Click(object sender, EventArgs e) { if (unit.IsDisposed) { unit = new frmUnit(); } unit.MdiParent = this; unit.Show(); unit.BringToFront(); }
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(); } }
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(); } }