示例#1
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();
            }
        }