/// <summary> /// the function is closing the current form and opens the rubric form /// </summary> /// <param name="sender">Object Sender is a parameter called Sender that contains a reference to the control/object that raised the event</param> /// <param name="e">EventArgs e is a parameter called e that contains the event data</param> private void button3_Click(object sender, EventArgs e) { Rubric rb = new Rubric(); this.Hide(); rb.Show(); }
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 manageToolStripMenuItem2_Click(object sender, EventArgs e) { if (rubric == null) { rubric = new Rubric(); rubric.MdiParent = this; rubric.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.std_FormClosed); rubric.Show(); if (stdflag) { std.WindowState = System.Windows.Forms.FormWindowState.Minimized; } if (cloflag) { clo.WindowState = System.Windows.Forms.FormWindowState.Minimized; } if (assessmentflag) { assessment.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; } rbflag = true; } else { rubric.Activate(); } }
private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { Rubric r = new Rubric(); r.Show(); }