Ejemplo n.º 1
0
        private void lnkStudentAttendance_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            StudentAttendance c = new StudentAttendance();

            this.Hide();
            c.Show();
        }
Ejemplo n.º 2
0
        /// <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();
        }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 4
0
        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();
            }
        }