예제 #1
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();
        }
예제 #2
0
 private void manageToolStripMenuItem9_Click(object sender, EventArgs e)
 {
     if (assessmentreport == null)
     {
         assessmentreport              = new AssessmentReport();
         assessmentreport.MdiParent    = this;
         assessmentreport.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.std_FormClosed);
         assessmentreport.Show();
         if (stdflag)
         {
             std.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 (studentattendanceflag)
         {
             stdattendance.WindowState = System.Windows.Forms.FormWindowState.Minimized;
         }
         if (cloflag)
         {
             clo.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 (cloflag)
         {
             cloreport.WindowState = System.Windows.Forms.FormWindowState.Minimized;
         }
         assessmentreportflag = true;
     }
     else
     {
         assessmentreport.Activate();
     }
 }