private void formUser_Load(object sender, EventArgs e) { formReportBug = new formUserReportBug(userId); formUserEditBugReport = new formUserEditBugReport(userId); formEditUser = new formEditUser(userId); WindowState = FormWindowState.Maximized; formHome = new formUserHome(userId); formHome.MdiParent = this; formHome.Show(); }
private void homeToolStripMenuItem_Click(object sender, EventArgs e) { if (!formHome.Visible) { formHome = new formUserHome(userId); formHome.MdiParent = this; formHome.Show(); } else { formHome.Activate(); } }