/// <summary> /// the function is closing the current form and opens the student attendance 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 button8_Click(object sender, EventArgs e) { StudentAttendance sta = new StudentAttendance(); this.Hide(); sta.Show(); }
private void lnkStudentAttendance_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { StudentAttendance c = new StudentAttendance(); this.Hide(); c.Show(); }
private void manageToolStripMenuItem7_Click(object sender, EventArgs e) { if (stdattendance == null) { stdattendance = new StudentAttendance(); stdattendance.MdiParent = this; stdattendance.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.std_FormClosed); stdattendance.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 (assessmentflag) { assessment.WindowState = System.Windows.Forms.FormWindowState.Minimized; } if (componentflag) { component.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; } studentattendanceflag = true; } else { stdattendance.Activate(); } }