private void bugsReportsToolStripMenuItem_Click(object sender, EventArgs e) { if (!formEditBugAppointment.Visible) { formEditBugAppointment = new formEditBugAppointment(); formEditBugAppointment.MdiParent = this; formEditBugAppointment.Show(); } else { formEditBugAppointment.Activate(); } }
private void formAdmin_Load(object sender, EventArgs e) { WindowState = FormWindowState.Maximized; formAdminHome = new formAdminHome(userId); formAddAdmin = new formAddAdmin(); formAddProject = new formAddProject(); formAddBugAppointment = new formAddBugAppointment(); formViewBugAppointment = new formViewBugAppointment(); formEditBugAppointment = new formEditBugAppointment(); formEditUser = new formEditUser(userId); formViewProjectNames = new formViewProjectNames(); formEditProjectNames = new formEditProjectNames(); formViewBugAudit = new formViewBugAudit(); formManageUsers = new formManageUsers(); formAdminHome.MdiParent = this; formAdminHome.Show(); }