private void projectsToolStripMenuItem1_Click(object sender, EventArgs e) { if (!formViewProjectNames.Visible) { formViewProjectNames = new formViewProjectNames(); formViewProjectNames.MdiParent = this; formViewProjectNames.Show(); } else { formViewProjectNames.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(); }