void std_FormClosed(object sender, FormClosingEventArgs e) { std = null; clo = null; rubric = null; assessment = null; component = null; result = null; classattendance = null; stdattendance = null; cloreport = null; assessmentreport = null; stdflag = false; cloflag = false; rbflag = false; assessmentflag = false; componentflag = false; studentresultflag = false; classattendanceflag = false; studentresultflag = false; cloreportflag = false; assessmentreportflag = false; //throw new NotImplementedException(); }
private void manageToolStripMenuItem3_Click(object sender, EventArgs e) { if (assessment == null) { assessment = new Assesment(); assessment.MdiParent = this; assessment.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.std_FormClosed); assessment.Show(); if (stdflag) { std.WindowState = System.Windows.Forms.FormWindowState.Minimized; } if (cloflag) { clo.WindowState = System.Windows.Forms.FormWindowState.Minimized; } if (rbflag) { rubric.WindowState = System.Windows.Forms.FormWindowState.Minimized; } if (componentflag) { component.WindowState = System.Windows.Forms.FormWindowState.Minimized; } if (studentattendanceflag) { stdattendance.WindowState = System.Windows.Forms.FormWindowState.Minimized; } if (classattendanceflag) { classattendance.WindowState = System.Windows.Forms.FormWindowState.Minimized; } if (studentresultflag) { result.WindowState = System.Windows.Forms.FormWindowState.Minimized; } if (cloreportflag) { cloreport.WindowState = System.Windows.Forms.FormWindowState.Minimized; } if (assessmentreportflag) { assessmentreport.WindowState = System.Windows.Forms.FormWindowState.Minimized; } assessmentflag = true; } else { assessment.Activate(); } }