示例#1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     WindowState           = FormWindowState.Maximized;
     formReportBug         = new formUserReportBug(userId);
     formUserEditBugReport = new formUserEditBugReport(userId);
     formEditUser          = new formEditUser(userId);
     loadFormDetails();
 }
        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 reportBugToolStripMenuItem_Click(object sender, EventArgs e)
 {            
     if (!formReportBug.Visible)
     {
         formReportBug = new formUserReportBug(userId);
         formReportBug.MdiParent = this;
         formReportBug.Show();                
     }
     else {
         formReportBug.Activate();
     }            
 }