private void buildingsToolStripMenuItem_Click(object sender, EventArgs e) { var form = new FrmBuilding { MdiParent = this }; form.Show(); }
private void buildingDefineToolStripMenuItem_Click(object sender, EventArgs e) { Form fc = Application.OpenForms["FrmUserManagement"]; Form fcParentMenu = Application.OpenForms["FrmMainScreen"]; if (fc != null) { fc.Focus(); } else { FrmBuilding f1 = new FrmBuilding(); f1.MdiParent = fcParentMenu; f1.Show(); } }
void mnuBuilding_Click(object sender, EventArgs e) { Form fc = Application.OpenForms["FrmBuilding"]; Form fcParentMenu = Application.OpenForms["FrmMainScreen"]; if (fc != null) { fc.Focus(); } else { FrmBuilding f1 = new FrmBuilding(); f1.MdiParent = fcParentMenu; f1.Show(); } }