public static Overall GetOverallForOneStudent(Student student)
        {
            var overallStudent = new Overall();

            float[] overallMarks;
            float overallMark;

            student = ReturnOverallMarksForAllSubjects(student, out overallMarks, out overallMark);

            ReturnOverAllMarkForStudent(ref student, ref overallStudent, overallMarks, ref overallMark);

            return overallStudent;
        }
        public static Overall FindAStudentByOverallMark(Student[] students, float mark)
        {
            var student = new Overall();

            var studentsWithOverall = GetTheStudentsWithOrderedListByOverallMarks(students);

            for (int i = 0; i < studentsWithOverall.Length; i++)
                if (studentsWithOverall[i].overallMark == mark)
                {
                    student.overallMark = studentsWithOverall[i].overallMark;
                    student.studentName = studentsWithOverall[i].studentName;
                }
            return student;
        }
 public void OnRecievedMessage(RecievedLobbyChatMessageEvent e, Node any, [JoinAll] Overall overallChannel)
 {
     overallChannel.chatChannel.AddMessage(e.Message);
 }
Example #4
0
 // Use this for initialization
 void Awake()
 {
     self = this;
     PieceLib.Init();
     StartLevel();
 }
Example #5
0
        /// <summary>
        /// Loads the overall template with all the data contained withint overallData
        /// </summary>
        /// <param name="overallData"></param>
        public void LoadTemplate(Overall overallData)
        {
            // KPI -> Plan -> PR Plan Date vs Current Plan Date
            lbl_kpiPlanPRPlannedDateVsCurrPlan_One.Text   = string.Format("{0:n}", overallData.kpi.plan.prPlanDateVsCurrPlan.data.Average) + " Day(s)";
            lbl_kpiPlanPRPlannedDateVsCurrPlan_Two.Text   = string.Format("{0:n0}", overallData.kpi.plan.prPlanDateVsCurrPlan.data.Minus_TwentyTwo);
            lbl_kpiPlanPRPlannedDateVsCurrPlan_Three.Text = string.Format("{0:n0}", overallData.kpi.plan.prPlanDateVsCurrPlan.data.Minus_Fifteen_TwentyOne);
            lbl_kpiPlanPRPlannedDateVsCurrPlan_Four.Text  = string.Format("{0:n0}", overallData.kpi.plan.prPlanDateVsCurrPlan.data.Minus_Eight_Fourteen);
            lbl_kpiPlanPRPlannedDateVsCurrPlan_Five.Text  = string.Format("{0:n0}", overallData.kpi.plan.prPlanDateVsCurrPlan.data.Minus_One_Seven);
            lbl_kpiPlanPRPlannedDateVsCurrPlan_Six.Text   = string.Format("{0:n0}", overallData.kpi.plan.prPlanDateVsCurrPlan.data.Zero);
            lbl_kpiPlanPRPlannedDateVsCurrPlan_Seven.Text = string.Format("{0:n0}", overallData.kpi.plan.prPlanDateVsCurrPlan.data.One_Seven);
            lbl_kpiPlanPRPlannedDateVsCurrPlan_Eight.Text = string.Format("{0:n0}", overallData.kpi.plan.prPlanDateVsCurrPlan.data.Eight_Fourteen);
            lbl_kpiPlanPRPlannedDateVsCurrPlan_Nine.Text  = string.Format("{0:n0}", overallData.kpi.plan.prPlanDateVsCurrPlan.data.Fifteen_TwentyOne);
            lbl_kpiPlanPRPlannedDateVsCurrPlan_Ten.Text   = string.Format("{0:n0}", overallData.kpi.plan.prPlanDateVsCurrPlan.data.TwentyTwo);


            // KPI -> Purch -> Initial Confirmation vs PR Planned Date
            lbl_kpiPurchInitConfVsPrPlanDate_One.Text    = string.Format("{0:n}", overallData.kpi.purch.initConfVsPRPlanDate.data.Average) + " Day(s)";
            lbl_kpiPurchInitConfVsPrPlanDate_Two.Text    = string.Format("{0:n0}", overallData.kpi.purch.initConfVsPRPlanDate.data.Minus_TwentyTwo);
            lbl_kpiPurchInitConfVsPrPlanDate_Three.Text  = string.Format("{0:n0}", overallData.kpi.purch.initConfVsPRPlanDate.data.Minus_Fifteen_TwentyOne);
            lbl_kpiPurchInitConfVsPrPlanDate_Four.Text   = string.Format("{0:n0}", overallData.kpi.purch.initConfVsPRPlanDate.data.Minus_Eight_Fourteen);
            lbl_kpiPurchInitConfVsPrPlanDate_Five.Text   = string.Format("{0:n0}", overallData.kpi.purch.initConfVsPRPlanDate.data.Minus_One_Seven);
            lbl_kpiPurchInitConfVsPrPlanDate_Six.Text    = string.Format("{0:n0}", overallData.kpi.purch.initConfVsPRPlanDate.data.Zero);
            lbl_kpiPurchInitConfVsPrPlanDate_Seven.Text  = string.Format("{0:n0}", overallData.kpi.purch.initConfVsPRPlanDate.data.One_Seven);
            lbl_kpiPurchInitConfVsPrPlanDate_Eight.Text  = string.Format("{0:n0}", overallData.kpi.purch.initConfVsPRPlanDate.data.Eight_Fourteen);
            lbl_kpiPurchInitConfVsPrPlanDate_Nine.Text   = string.Format("{0:n0}", overallData.kpi.purch.initConfVsPRPlanDate.data.Fifteen_TwentyOne);
            lbl_kpiPurchInitConfVsPrPlanDate_Ten.Text    = string.Format("{0:n0}", overallData.kpi.purch.initConfVsPRPlanDate.data.TwentyTwo);
            lbl_kpiPurchInitConfVsPrPlanDate_Eleven.Text = string.Format("{0:n0}", overallData.kpi.purch.initConfVsPRPlanDate.data.PercentUnconf + "%");

            // KPI -> Follow Up -> Initial Confirmation vs Current Confirmation
            lbl_kpiFollowUpInitConfVsCurrConf_One.Text    = string.Format("{0:n}", overallData.kpi.followUp.initConfVsCurrConf.data.Average) + " Day(s)";
            lbl_kpiFollowUpInitConfVsCurrConf_Two.Text    = string.Format("{0:n0}", overallData.kpi.followUp.initConfVsCurrConf.data.Minus_TwentyTwo);
            lbl_kpiFollowUpInitConfVsCurrConf_Three.Text  = string.Format("{0:n0}", overallData.kpi.followUp.initConfVsCurrConf.data.Minus_Fifteen_TwentyOne);
            lbl_kpiFollowUpInitConfVsCurrConf_Four.Text   = string.Format("{0:n0}", overallData.kpi.followUp.initConfVsCurrConf.data.Minus_Eight_Fourteen);
            lbl_kpiFollowUpInitConfVsCurrConf_Five.Text   = string.Format("{0:n0}", overallData.kpi.followUp.initConfVsCurrConf.data.Minus_One_Seven);
            lbl_kpiFollowUpInitConfVsCurrConf_Six.Text    = string.Format("{0:n0}", overallData.kpi.followUp.initConfVsCurrConf.data.Zero);
            lbl_kpiFollowUpInitConfVsCurrConf_Seven.Text  = string.Format("{0:n0}", overallData.kpi.followUp.initConfVsCurrConf.data.One_Seven);
            lbl_kpiFollowUpInitConfVsCurrConf_Eight.Text  = string.Format("{0:n0}", overallData.kpi.followUp.initConfVsCurrConf.data.Eight_Fourteen);
            lbl_kpiFollowUpInitConfVsCurrConf_Nine.Text   = string.Format("{0:n0}", overallData.kpi.followUp.initConfVsCurrConf.data.Fifteen_TwentyOne);
            lbl_kpiFollowUpInitConfVsCurrConf_Ten.Text    = string.Format("{0:n0}", overallData.kpi.followUp.initConfVsCurrConf.data.TwentyTwo);
            lbl_kpiFollowUpInitConfVsCurrConf_Eleven.Text = string.Format("{0:n0}", overallData.kpi.followUp.initConfVsCurrConf.data.PercentUnconf + "%");


            // KPI -> Follow Up -> Final Confirmation Date vs Final Planned Date
            lbl_kpiFollowUpFinalConfVsFinalPlanDate_One.Text    = string.Format("{0:n}", overallData.kpi.followUp.finalConfDateVsFinalPlan.data.Average) + " Day(s)";
            lbl_kpiFollowUpFinalConfVsFinalPlanDate_Two.Text    = string.Format("{0:n0}", overallData.kpi.followUp.finalConfDateVsFinalPlan.data.Minus_TwentyTwo);
            lbl_kpiFollowUpFinalConfVsFinalPlanDate_Three.Text  = string.Format("{0:n0}", overallData.kpi.followUp.finalConfDateVsFinalPlan.data.Minus_Fifteen_TwentyOne);
            lbl_kpiFollowUpFinalConfVsFinalPlanDate_Four.Text   = string.Format("{0:n0}", overallData.kpi.followUp.finalConfDateVsFinalPlan.data.Minus_Eight_Fourteen);
            lbl_kpiFollowUpFinalConfVsFinalPlanDate_Five.Text   = string.Format("{0:n0}", overallData.kpi.followUp.finalConfDateVsFinalPlan.data.Minus_One_Seven);
            lbl_kpiFollowUpFinalConfVsFinalPlanDate_Six.Text    = string.Format("{0:n0}", overallData.kpi.followUp.finalConfDateVsFinalPlan.data.Zero);
            lbl_kpiFollowUpFinalConfVsFinalPlanDate_Seven.Text  = string.Format("{0:n0}", overallData.kpi.followUp.finalConfDateVsFinalPlan.data.One_Seven);
            lbl_kpiFollowUpFinalConfVsFinalPlanDate_Eight.Text  = string.Format("{0:n0}", overallData.kpi.followUp.finalConfDateVsFinalPlan.data.Eight_Fourteen);
            lbl_kpiFollowUpFinalConfVsFinalPlanDate_Nine.Text   = string.Format("{0:n0}", overallData.kpi.followUp.finalConfDateVsFinalPlan.data.Fifteen_TwentyOne);
            lbl_kpiFollowUpFinalConfVsFinalPlanDate_Ten.Text    = string.Format("{0:n0}", overallData.kpi.followUp.finalConfDateVsFinalPlan.data.TwentyTwo);
            lbl_kpiFollowUpFinalConfVsFinalPlanDate_Eleven.Text = string.Format("{0:n0}", overallData.kpi.followUp.finalConfDateVsFinalPlan.data.PercentUnconf + "%");


            // KPI -> Follow Up -> Receipt Date vs Current Planned Date
            lbl_kpiFollowUpRecVsCurrPlanDate_One.Text   = string.Format("{0:n}", overallData.kpi.followUp.receiptDateVsCurrPlanDate.data.Average) + " Day(s)";
            lbl_kpiFollowUpRecVsCurrPlanDate_Two.Text   = string.Format("{0:n0}", overallData.kpi.followUp.receiptDateVsCurrPlanDate.data.Minus_TwentyTwo);
            lbl_kpiFollowUpRecVsCurrPlanDate_Three.Text = string.Format("{0:n0}", overallData.kpi.followUp.receiptDateVsCurrPlanDate.data.Minus_Fifteen_TwentyOne);
            lbl_kpiFollowUpRecVsCurrPlanDate_Four.Text  = string.Format("{0:n0}", overallData.kpi.followUp.receiptDateVsCurrPlanDate.data.Minus_Eight_Fourteen);
            lbl_kpiFollowUpRecVsCurrPlanDate_Five.Text  = string.Format("{0:n0}", overallData.kpi.followUp.receiptDateVsCurrPlanDate.data.Minus_One_Seven);
            lbl_kpiFollowUpRecVsCurrPlanDate_Six.Text   = string.Format("{0:n0}", overallData.kpi.followUp.receiptDateVsCurrPlanDate.data.Zero);
            lbl_kpiFollowUpRecVsCurrPlanDate_Seven.Text = string.Format("{0:n0}", overallData.kpi.followUp.receiptDateVsCurrPlanDate.data.One_Seven);
            lbl_kpiFollowUpRecVsCurrPlanDate_Eight.Text = string.Format("{0:n0}", overallData.kpi.followUp.receiptDateVsCurrPlanDate.data.Eight_Fourteen);
            lbl_kpiFollowUpRecVsCurrPlanDate_Nine.Text  = string.Format("{0:n0}", overallData.kpi.followUp.receiptDateVsCurrPlanDate.data.Fifteen_TwentyOne);
            lbl_kpiFollowUpRecVsCurrPlanDate_Ten.Text   = string.Format("{0:n0}", overallData.kpi.followUp.receiptDateVsCurrPlanDate.data.TwentyTwo);


            // KPI -> Follow Up -> Receipt Date vs Original Confirmed Date
            lbl_kpiFollowUpRecVsOrigConfDate_One.Text    = string.Format("{0:n}", overallData.kpi.followUp.receiptDateVsOrigConfDate.data.Average) + " Day(s)";
            lbl_kpiFollowUpRecVsOrigConfDate_Two.Text    = string.Format("{0:n0}", overallData.kpi.followUp.receiptDateVsOrigConfDate.data.Minus_TwentyTwo);
            lbl_kpiFollowUpRecVsOrigConfDate_Three.Text  = string.Format("{0:n0}", overallData.kpi.followUp.receiptDateVsOrigConfDate.data.Minus_Fifteen_TwentyOne);
            lbl_kpiFollowUpRecVsOrigConfDate_Four.Text   = string.Format("{0:n0}", overallData.kpi.followUp.receiptDateVsOrigConfDate.data.Minus_Eight_Fourteen);
            lbl_kpiFollowUpRecVsOrigConfDate_Five.Text   = string.Format("{0:n0}", overallData.kpi.followUp.receiptDateVsOrigConfDate.data.Minus_One_Seven);
            lbl_kpiFollowUpRecVsOrigConfDate_Six.Text    = string.Format("{0:n0}", overallData.kpi.followUp.receiptDateVsOrigConfDate.data.Zero);
            lbl_kpiFollowUpRecVsOrigConfDate_Seven.Text  = string.Format("{0:n0}", overallData.kpi.followUp.receiptDateVsOrigConfDate.data.One_Seven);
            lbl_kpiFollowUpRecVsOrigConfDate_Eight.Text  = string.Format("{0:n0}", overallData.kpi.followUp.receiptDateVsOrigConfDate.data.Eight_Fourteen);
            lbl_kpiFollowUpRecVsOrigConfDate_Nine.Text   = string.Format("{0:n0}", overallData.kpi.followUp.receiptDateVsOrigConfDate.data.Fifteen_TwentyOne);
            lbl_kpiFollowUpRecVsOrigConfDate_Ten.Text    = string.Format("{0:n0}", overallData.kpi.followUp.receiptDateVsOrigConfDate.data.TwentyTwo);
            lbl_kpiFollowUpRecVsOrigConfDate_Eleven.Text = string.Format("{0:n0}", overallData.kpi.followUp.receiptDateVsOrigConfDate.data.PercentUnconf + "%");

            // KPI -> Follow Up -> Receipt Date vs Current Confirmed Date
            lbl_kpiFollowUpRecVsCurrConfDate_One.Text    = string.Format("{0:n}", overallData.kpi.followUp.receiptDateVsCurrConfDate.data.Average) + " Day(s)";
            lbl_kpiFollowUpRecVsCurrConfDate_Two.Text    = string.Format("{0:n0}", overallData.kpi.followUp.receiptDateVsCurrConfDate.data.Minus_TwentyTwo);
            lbl_kpiFollowUpRecVsCurrConfDate_Three.Text  = string.Format("{0:n0}", overallData.kpi.followUp.receiptDateVsCurrConfDate.data.Minus_Fifteen_TwentyOne);
            lbl_kpiFollowUpRecVsCurrConfDate_Four.Text   = string.Format("{0:n0}", overallData.kpi.followUp.receiptDateVsCurrConfDate.data.Minus_Eight_Fourteen);
            lbl_kpiFollowUpRecVsCurrConfDate_Five.Text   = string.Format("{0:n0}", overallData.kpi.followUp.receiptDateVsCurrConfDate.data.Minus_One_Seven);
            lbl_kpiFollowUpRecVsCurrConfDate_Six.Text    = string.Format("{0:n0}", overallData.kpi.followUp.receiptDateVsCurrConfDate.data.Zero);
            lbl_kpiFollowUpRecVsCurrConfDate_Seven.Text  = string.Format("{0:n0}", overallData.kpi.followUp.receiptDateVsCurrConfDate.data.One_Seven);
            lbl_kpiFollowUpRecVsCurrConfDate_Eight.Text  = string.Format("{0:n0}", overallData.kpi.followUp.receiptDateVsCurrConfDate.data.Eight_Fourteen);
            lbl_kpiFollowUpRecVsCurrConfDate_Nine.Text   = string.Format("{0:n0}", overallData.kpi.followUp.receiptDateVsCurrConfDate.data.Fifteen_TwentyOne);
            lbl_kpiFollowUpRecVsCurrConfDate_Ten.Text    = string.Format("{0:n0}", overallData.kpi.followUp.receiptDateVsCurrConfDate.data.TwentyTwo);
            lbl_kpiFollowUpRecVsCurrConfDate_Eleven.Text = string.Format("{0:n0}", overallData.kpi.followUp.receiptDateVsCurrConfDate.data.PercentUnconf + "%");


            // KPI -> PurchTwo -> PR 2nd Lvl Release vs PO Creation
            lbl_kpiPurchTwoPr2ndLvlRelVsPoCreation_One.Text    = string.Format("{0:n}", overallData.kpi.purchTwo.pr2ndLvlRelVsPOCreation.data.Average) + " Day(s)";
            lbl_kpiPurchTwoPr2ndLvlRelVsPoCreation_Two.Text    = string.Format("{0:n0}", overallData.kpi.purchTwo.pr2ndLvlRelVsPOCreation.data.LessThanZero);
            lbl_kpiPurchTwoPr2ndLvlRelVsPoCreation_Three.Text  = string.Format("{0:n0}", overallData.kpi.purchTwo.pr2ndLvlRelVsPOCreation.data.One_Three);
            lbl_kpiPurchTwoPr2ndLvlRelVsPoCreation_Four.Text   = string.Format("{0:n0}", overallData.kpi.purchTwo.pr2ndLvlRelVsPOCreation.data.Four_Seven);
            lbl_kpiPurchTwoPr2ndLvlRelVsPoCreation_Five.Text   = string.Format("{0:n0}", overallData.kpi.purchTwo.pr2ndLvlRelVsPOCreation.data.Eight_Fourteen);
            lbl_kpiPurchTwoPr2ndLvlRelVsPoCreation_Six.Text    = string.Format("{0:n0}", overallData.kpi.purchTwo.pr2ndLvlRelVsPOCreation.data.Fifteen_TwentyOne);
            lbl_kpiPurchTwoPr2ndLvlRelVsPoCreation_Seven.Text  = string.Format("{0:n0}", overallData.kpi.purchTwo.pr2ndLvlRelVsPOCreation.data.TwentyTwo_TwentyEight);
            lbl_kpiPurchTwoPr2ndLvlRelVsPoCreation_Eight.Text  = string.Format("{0:n0}", overallData.kpi.purchTwo.pr2ndLvlRelVsPOCreation.data.TwentyNine_ThirtyFive);
            lbl_kpiPurchTwoPr2ndLvlRelVsPoCreation_Nine.Text   = string.Format("{0:n0}", overallData.kpi.purchTwo.pr2ndLvlRelVsPOCreation.data.ThirtySix_FourtyTwo);
            lbl_kpiPurchTwoPr2ndLvlRelVsPoCreation_Ten.Text    = string.Format("{0:n0}", overallData.kpi.purchTwo.pr2ndLvlRelVsPOCreation.data.FourtyThree_FourtyNine);
            lbl_kpiPurchTwoPr2ndLvlRelVsPoCreation_Eleven.Text = string.Format("{0:n0}", overallData.kpi.purchTwo.pr2ndLvlRelVsPOCreation.data.greaterThanEqualFifty);

            // KPI -> PurchTwo -> PO Creation vs PO Release
            lbl_kpiPurchTwoPOCreateVsPORel_One.Text    = string.Format("{0:n}", overallData.kpi.purchTwo.poCreationVsPORel.data.Average) + " Day(s)";
            lbl_kpiPurchTwoPOCreateVsPORel_Two.Text    = string.Format("{0:n0}", overallData.kpi.purchTwo.poCreationVsPORel.data.LessThanZero);
            lbl_kpiPurchTwoPOCreateVsPORel_Three.Text  = string.Format("{0:n0}", overallData.kpi.purchTwo.poCreationVsPORel.data.One_Three);
            lbl_kpiPurchTwoPOCreateVsPORel_Four.Text   = string.Format("{0:n0}", overallData.kpi.purchTwo.poCreationVsPORel.data.Four_Seven);
            lbl_kpiPurchTwoPOCreateVsPORel_Five.Text   = string.Format("{0:n0}", overallData.kpi.purchTwo.poCreationVsPORel.data.Eight_Fourteen);
            lbl_kpiPurchTwoPOCreateVsPORel_Six.Text    = string.Format("{0:n0}", overallData.kpi.purchTwo.poCreationVsPORel.data.Fifteen_TwentyOne);
            lbl_kpiPurchTwoPOCreateVsPORel_Seven.Text  = string.Format("{0:n0}", overallData.kpi.purchTwo.poCreationVsPORel.data.TwentyTwo_TwentyEight);
            lbl_kpiPurchTwoPOCreateVsPORel_Eight.Text  = string.Format("{0:n0}", overallData.kpi.purchTwo.poCreationVsPORel.data.TwentyNine_ThirtyFive);
            lbl_kpiPurchTwoPOCreateVsPORel_Nine.Text   = string.Format("{0:n0}", overallData.kpi.purchTwo.poCreationVsPORel.data.ThirtySix_FourtyTwo);
            lbl_kpiPurchTwoPOCreateVsPORel_Ten.Text    = string.Format("{0:n0}", overallData.kpi.purchTwo.poCreationVsPORel.data.FourtyThree_FourtyNine);
            lbl_kpiPurchTwoPOCreateVsPORel_Eleven.Text = string.Format("{0:n0}", overallData.kpi.purchTwo.poCreationVsPORel.data.greaterThanEqualFifty);

            // KPI -> Purch Two - PO Release vs Po Confirm
            lbl_kpiPurchTwoPORelVsPOConf_One.Text    = string.Format("{0:n}", overallData.kpi.purchTwo.poRelVsPOConf.data.Average) + " Day(s)";
            lbl_kpiPurchTwoPORelVsPOConf_Two.Text    = string.Format("{0:n0}", overallData.kpi.purchTwo.poRelVsPOConf.data.LessThanZero);
            lbl_kpiPurchTwoPORelVsPOConf_Three.Text  = string.Format("{0:n0}", overallData.kpi.purchTwo.poRelVsPOConf.data.One_Three);
            lbl_kpiPurchTwoPORelVsPOConf_Four.Text   = string.Format("{0:n0}", overallData.kpi.purchTwo.poRelVsPOConf.data.Four_Seven);
            lbl_kpiPurchTwoPORelVsPOConf_Five.Text   = string.Format("{0:n0}", overallData.kpi.purchTwo.poRelVsPOConf.data.Eight_Fourteen);
            lbl_kpiPurchTwoPORelVsPOConf_Six.Text    = string.Format("{0:n0}", overallData.kpi.purchTwo.poRelVsPOConf.data.Fifteen_TwentyOne);
            lbl_kpiPurchTwoPORelVsPOConf_Seven.Text  = string.Format("{0:n0}", overallData.kpi.purchTwo.poRelVsPOConf.data.TwentyTwo_TwentyEight);
            lbl_kpiPurchTwoPORelVsPOConf_Eight.Text  = string.Format("{0:n0}", overallData.kpi.purchTwo.poRelVsPOConf.data.TwentyNine_ThirtyFive);
            lbl_kpiPurchTwoPORelVsPOConf_Nine.Text   = string.Format("{0:n0}", overallData.kpi.purchTwo.poRelVsPOConf.data.ThirtySix_FourtyTwo);
            lbl_kpiPurchTwoPORelVsPOConf_Ten.Text    = string.Format("{0:n0}", overallData.kpi.purchTwo.poRelVsPOConf.data.FourtyThree_FourtyNine);
            lbl_kpiPurchTwoPORelVsPOConf_Eleven.Text = string.Format("{0:n0}", overallData.kpi.purchTwo.poRelVsPOConf.data.greaterThanEqualFifty);
            lbl_kpiPurchTwoPORelVsPOConf_Twelve.Text = string.Format("{0:n0}", overallData.kpi.purchTwo.poRelVsPOConf.data.PercentUnconf + "%");



            // KPI -> Purch Sub -> PR Release vs PO Release
            lbl_kpiPurchSubPRRelVsPORel_One.Text    = string.Format("{0:n}", overallData.kpi.purchSub.prRelVsPORel.data.Average) + " Day(s)";
            lbl_kpiPurchSubPRRelVsPORel_Two.Text    = string.Format("{0:n0}", overallData.kpi.purchSub.prRelVsPORel.data.LessThanZero);
            lbl_kpiPurchSubPRRelVsPORel_Three.Text  = string.Format("{0:n0}", overallData.kpi.purchSub.prRelVsPORel.data.One_Three);
            lbl_kpiPurchSubPRRelVsPORel_Four.Text   = string.Format("{0:n0}", overallData.kpi.purchSub.prRelVsPORel.data.Four_Seven);
            lbl_kpiPurchSubPRRelVsPORel_Five.Text   = string.Format("{0:n0}", overallData.kpi.purchSub.prRelVsPORel.data.Eight_Fourteen);
            lbl_kpiPurchSubPRRelVsPORel_Six.Text    = string.Format("{0:n0}", overallData.kpi.purchSub.prRelVsPORel.data.Fifteen_TwentyOne);
            lbl_kpiPurchSubPRRelVsPORel_Seven.Text  = string.Format("{0:n0}", overallData.kpi.purchSub.prRelVsPORel.data.TwentyTwo_TwentyEight);
            lbl_kpiPurchSubPRRelVsPORel_Eight.Text  = string.Format("{0:n0}", overallData.kpi.purchSub.prRelVsPORel.data.TwentyNine_ThirtyFive);
            lbl_kpiPurchSubPRRelVsPORel_Nine.Text   = string.Format("{0:n0}", overallData.kpi.purchSub.prRelVsPORel.data.ThirtySix_FourtyTwo);
            lbl_kpiPurchSubPRRelVsPORel_Ten.Text    = string.Format("{0:n0}", overallData.kpi.purchSub.prRelVsPORel.data.FourtyThree_FourtyNine);
            lbl_kpiPurchSubPRRelVsPORel_Eleven.Text = string.Format("{0:n0}", overallData.kpi.purchSub.prRelVsPORel.data.greaterThanEqualFifty);

            // KPI -> Purch Sub - PO Creation vs Confirmation Entry
            lbl_kpiPurchSubPOCreateVsConfEntry_One.Text    = string.Format("{0:n}", overallData.kpi.purchSub.poCreateVsConfEntry.data.Average) + " Day(s)";
            lbl_kpiPurchSubPOCreateVsConfEntry_Two.Text    = string.Format("{0:n0}", overallData.kpi.purchSub.poCreateVsConfEntry.data.LessThanZero);
            lbl_kpiPurchSubPOCreateVsConfEntry_Three.Text  = string.Format("{0:n0}", overallData.kpi.purchSub.poCreateVsConfEntry.data.One_Three);
            lbl_kpiPurchSubPOCreateVsConfEntry_Four.Text   = string.Format("{0:n0}", overallData.kpi.purchSub.poCreateVsConfEntry.data.Four_Seven);
            lbl_kpiPurchSubPOCreateVsConfEntry_Five.Text   = string.Format("{0:n0}", overallData.kpi.purchSub.poCreateVsConfEntry.data.Eight_Fourteen);
            lbl_kpiPurchSubPOCreateVsConfEntry_Six.Text    = string.Format("{0:n0}", overallData.kpi.purchSub.poCreateVsConfEntry.data.Fifteen_TwentyOne);
            lbl_kpiPurchSubPOCreateVsConfEntry_Seven.Text  = string.Format("{0:n0}", overallData.kpi.purchSub.poCreateVsConfEntry.data.TwentyTwo_TwentyEight);
            lbl_kpiPurchSubPOCreateVsConfEntry_Eight.Text  = string.Format("{0:n0}", overallData.kpi.purchSub.poCreateVsConfEntry.data.TwentyNine_ThirtyFive);
            lbl_kpiPurchSubPOCreateVsConfEntry_Nine.Text   = string.Format("{0:n0}", overallData.kpi.purchSub.poCreateVsConfEntry.data.ThirtySix_FourtyTwo);
            lbl_kpiPurchSubPOCreateVsConfEntry_Ten.Text    = string.Format("{0:n0}", overallData.kpi.purchSub.poCreateVsConfEntry.data.FourtyThree_FourtyNine);
            lbl_kpiPurchSubPOCreateVsConfEntry_Eleven.Text = string.Format("{0:n0}", overallData.kpi.purchSub.poCreateVsConfEntry.data.greaterThanEqualFifty);
            lbl_kpiPurchSubPOCreateVsConfEntry_Twelve.Text = string.Format("{0:n0}", overallData.kpi.purchSub.poCreateVsConfEntry.data.PercentUnconf + "%");

            // KPI -> Purch Total -> PR Release vs Confirmation Entry
            lbl_kpiPurchTotalPRRelConfEntry_One.Text    = string.Format("{0:n}", overallData.kpi.purchTotal.prRelConfEntry.data.Average) + " Day(s)";
            lbl_kpiPurchTotalPRRelConfEntry_Two.Text    = string.Format("{0:n0}", overallData.kpi.purchTotal.prRelConfEntry.data.LessThanZero);
            lbl_kpiPurchTotalPRRelConfEntry_Three.Text  = string.Format("{0:n0}", overallData.kpi.purchTotal.prRelConfEntry.data.One_Three);
            lbl_kpiPurchTotalPRRelConfEntry_Four.Text   = string.Format("{0:n0}", overallData.kpi.purchTotal.prRelConfEntry.data.Four_Seven);
            lbl_kpiPurchTotalPRRelConfEntry_Five.Text   = string.Format("{0:n0}", overallData.kpi.purchTotal.prRelConfEntry.data.Eight_Fourteen);
            lbl_kpiPurchTotalPRRelConfEntry_Six.Text    = string.Format("{0:n0}", overallData.kpi.purchTotal.prRelConfEntry.data.Fifteen_TwentyOne);
            lbl_kpiPurchTotalPRRelConfEntry_Seven.Text  = string.Format("{0:n0}", overallData.kpi.purchTotal.prRelConfEntry.data.TwentyTwo_TwentyEight);
            lbl_kpiPurchTotalPRRelConfEntry_Eight.Text  = string.Format("{0:n0}", overallData.kpi.purchTotal.prRelConfEntry.data.TwentyNine_ThirtyFive);
            lbl_kpiPurchTotalPRRelConfEntry_Nine.Text   = string.Format("{0:n0}", overallData.kpi.purchTotal.prRelConfEntry.data.ThirtySix_FourtyTwo);
            lbl_kpiPurchTotalPRRelConfEntry_Ten.Text    = string.Format("{0:n0}", overallData.kpi.purchTotal.prRelConfEntry.data.FourtyThree_FourtyNine);
            lbl_kpiPurchTotalPRRelConfEntry_Eleven.Text = string.Format("{0:n0}", overallData.kpi.purchTotal.prRelConfEntry.data.greaterThanEqualFifty);
            lbl_kpiPurchTotalPRRelConfEntry_Twelve.Text = string.Format("{0:n0}", overallData.kpi.purchTotal.prRelConfEntry.data.PercentUnconf + "%");



            // KPI -> Purch/Plan - PO Release vs PR Delivery Date
            lbl_kpiPurchPlanPORelVsPRDelDate_One.Text    = string.Format("{0:n}", overallData.kpi.purchPlan.poRelVsPRDelDate.data.Average) + " Day(s)";
            lbl_kpiPurchPlanPORelVsPRDelDate_Two.Text    = string.Format("{0:n0}", overallData.kpi.purchPlan.poRelVsPRDelDate.data.LessThanZero);
            lbl_kpiPurchPlanPORelVsPRDelDate_Three.Text  = string.Format("{0:n0}", overallData.kpi.purchPlan.poRelVsPRDelDate.data.One_Three);
            lbl_kpiPurchPlanPORelVsPRDelDate_Four.Text   = string.Format("{0:n0}", overallData.kpi.purchPlan.poRelVsPRDelDate.data.Four_Seven);
            lbl_kpiPurchPlanPORelVsPRDelDate_Five.Text   = string.Format("{0:n0}", overallData.kpi.purchPlan.poRelVsPRDelDate.data.Eight_Fourteen);
            lbl_kpiPurchPlanPORelVsPRDelDate_Six.Text    = string.Format("{0:n0}", overallData.kpi.purchPlan.poRelVsPRDelDate.data.Fifteen_TwentyOne);
            lbl_kpiPurchPlanPORelVsPRDelDate_Seven.Text  = string.Format("{0:n0}", overallData.kpi.purchPlan.poRelVsPRDelDate.data.TwentyTwo_TwentyEight);
            lbl_kpiPurchPlanPORelVsPRDelDate_Eight.Text  = string.Format("{0:n0}", overallData.kpi.purchPlan.poRelVsPRDelDate.data.TwentyNine_ThirtyFive);
            lbl_kpiPurchPlanPORelVsPRDelDate_Nine.Text   = string.Format("{0:n0}", overallData.kpi.purchPlan.poRelVsPRDelDate.data.ThirtySix_FourtyTwo);
            lbl_kpiPurchPlanPORelVsPRDelDate_Ten.Text    = string.Format("{0:n0}", overallData.kpi.purchPlan.poRelVsPRDelDate.data.FourtyThree_FourtyNine);
            lbl_kpiPurchPlanPORelVsPRDelDate_Eleven.Text = string.Format("{0:n0}", overallData.kpi.purchPlan.poRelVsPRDelDate.data.greaterThanEqualFifty);

            // KPI -> Purch/Plan - PR 2nd Lvl Rel to Orig Del Date
            lbl_kpiPurchPlanPR2ndLvlRelOrigPlanDelDate_One.Text    = string.Format("{0:n}", overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.Average) + " Day(s)";
            lbl_kpiPurchPlanPR2ndLvlRelOrigPlanDelDate_Two.Text    = string.Format("{0:n0}", overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.LessThanZero);
            lbl_kpiPurchPlanPR2ndLvlRelOrigPlanDelDate_Three.Text  = string.Format("{0:n0}", overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.One_Three);
            lbl_kpiPurchPlanPR2ndLvlRelOrigPlanDelDate_Four.Text   = string.Format("{0:n0}", overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.Four_Seven);
            lbl_kpiPurchPlanPR2ndLvlRelOrigPlanDelDate_Five.Text   = string.Format("{0:n0}", overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.Eight_Fourteen);
            lbl_kpiPurchPlanPR2ndLvlRelOrigPlanDelDate_Six.Text    = string.Format("{0:n0}", overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.Fifteen_TwentyOne);
            lbl_kpiPurchPlanPR2ndLvlRelOrigPlanDelDate_Seven.Text  = string.Format("{0:n0}", overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.TwentyTwo_TwentyEight);
            lbl_kpiPurchPlanPR2ndLvlRelOrigPlanDelDate_Eight.Text  = string.Format("{0:n0}", overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.TwentyNine_ThirtyFive);
            lbl_kpiPurchPlanPR2ndLvlRelOrigPlanDelDate_Nine.Text   = string.Format("{0:n0}", overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.ThirtySix_FourtyTwo);
            lbl_kpiPurchPlanPR2ndLvlRelOrigPlanDelDate_Ten.Text    = string.Format("{0:n0}", overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.FourtyThree_FourtyNine);
            lbl_kpiPurchPlanPR2ndLvlRelOrigPlanDelDate_Eleven.Text = string.Format("{0:n0}", overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.greaterThanEqualFifty);


            // KPI -> Other - PRs Created
            lbl_kpiOtherPrsCreated_One.Text    = "$" + string.Format("{0:n}", overallData.kpi.other.prsCreated.data.TotalValue);
            lbl_kpiOtherPrsCreated_Two.Text    = string.Format("{0:n0}", overallData.kpi.other.prsCreated.data.Zero);
            lbl_kpiOtherPrsCreated_Three.Text  = string.Format("{0:n0}", overallData.kpi.other.prsCreated.data.LessOneWeek);
            lbl_kpiOtherPrsCreated_Four.Text   = string.Format("{0:n0}", overallData.kpi.other.prsCreated.data.LessTwoWeeks);
            lbl_kpiOtherPrsCreated_Five.Text   = string.Format("{0:n0}", overallData.kpi.other.prsCreated.data.LessThreeWeeks);
            lbl_kpiOtherPrsCreated_Six.Text    = string.Format("{0:n0}", overallData.kpi.other.prsCreated.data.LessFourWeeks);
            lbl_kpiOtherPrsCreated_Seven.Text  = string.Format("{0:n0}", overallData.kpi.other.prsCreated.data.LessFiveWeeks);
            lbl_kpiOtherPrsCreated_Eight.Text  = string.Format("{0:n0}", overallData.kpi.other.prsCreated.data.LessSixWeeks);
            lbl_kpiOtherPrsCreated_Nine.Text   = string.Format("{0:n0}", overallData.kpi.other.prsCreated.data.LessSevenWeeks);
            lbl_kpiOtherPrsCreated_Ten.Text    = string.Format("{0:n0}", overallData.kpi.other.prsCreated.data.LessEightWeeks);
            lbl_kpiOtherPrsCreated_Eleven.Text = string.Format("{0:n0}", overallData.kpi.other.prsCreated.data.LessNinePlusWeeks);

            // KPI -> Other - PRs Released
            lbl_kpiOtherPRsReleased_One.Text    = "$" + string.Format("{0:n}", overallData.kpi.other.prsReleased.data.TotalValue);
            lbl_kpiOtherPRsReleased_Two.Text    = string.Format("{0:n0}", overallData.kpi.other.prsReleased.data.Zero);
            lbl_kpiOtherPRsReleased_Three.Text  = string.Format("{0:n0}", overallData.kpi.other.prsReleased.data.LessOneWeek);
            lbl_kpiOtherPRsReleased_Four.Text   = string.Format("{0:n0}", overallData.kpi.other.prsReleased.data.LessTwoWeeks);
            lbl_kpiOtherPRsReleased_Five.Text   = string.Format("{0:n0}", overallData.kpi.other.prsReleased.data.LessThreeWeeks);
            lbl_kpiOtherPRsReleased_Six.Text    = string.Format("{0:n0}", overallData.kpi.other.prsReleased.data.LessFourWeeks);
            lbl_kpiOtherPRsReleased_Seven.Text  = string.Format("{0:n0}", overallData.kpi.other.prsReleased.data.LessFiveWeeks);
            lbl_kpiOtherPRsReleased_Eight.Text  = string.Format("{0:n0}", overallData.kpi.other.prsReleased.data.LessSixWeeks);
            lbl_kpiOtherPRsReleased_Nine.Text   = string.Format("{0:n0}", overallData.kpi.other.prsReleased.data.LessSevenWeeks);
            lbl_kpiOtherPRsReleased_Ten.Text    = string.Format("{0:n0}", overallData.kpi.other.prsReleased.data.LessEightWeeks);
            lbl_kpiOtherPRsReleased_Eleven.Text = string.Format("{0:n0}", overallData.kpi.other.prsReleased.data.LessNinePlusWeeks);

            // KPI -> Other - Total Spend
            lbl_kpiOtherTotalSpend_One.Text    = "$" + string.Format("{0:n}", overallData.kpi.other.totalSpend.data.TotalValue);
            lbl_kpiOtherTotalSpend_Two.Text    = string.Format("{0:n0}", overallData.kpi.other.totalSpend.data.Zero);
            lbl_kpiOtherTotalSpend_Three.Text  = string.Format("{0:n0}", overallData.kpi.other.totalSpend.data.LessOneWeek);
            lbl_kpiOtherTotalSpend_Four.Text   = string.Format("{0:n0}", overallData.kpi.other.totalSpend.data.LessTwoWeeks);
            lbl_kpiOtherTotalSpend_Five.Text   = string.Format("{0:n0}", overallData.kpi.other.totalSpend.data.LessThreeWeeks);
            lbl_kpiOtherTotalSpend_Six.Text    = string.Format("{0:n0}", overallData.kpi.other.totalSpend.data.LessFourWeeks);
            lbl_kpiOtherTotalSpend_Seven.Text  = string.Format("{0:n0}", overallData.kpi.other.totalSpend.data.LessFiveWeeks);
            lbl_kpiOtherTotalSpend_Eight.Text  = string.Format("{0:n0}", overallData.kpi.other.totalSpend.data.LessSixWeeks);
            lbl_kpiOtherTotalSpend_Nine.Text   = string.Format("{0:n0}", overallData.kpi.other.totalSpend.data.LessSevenWeeks);
            lbl_kpiOtherTotalSpend_Ten.Text    = string.Format("{0:n0}", overallData.kpi.other.totalSpend.data.LessEightWeeks);
            lbl_kpiOtherTotalSpend_Eleven.Text = string.Format("{0:n0}", overallData.kpi.other.totalSpend.data.LessNinePlusWeeks);

            // KPI -> Other - PR vs PO Value
            lbl_kpiOtherPRsVsPOValue_One.Text    = "$" + string.Format("{0:n}", overallData.kpi.other.prVsPOValue.data.TotalValue);
            lbl_kpiOtherPRsVsPOValue_Two.Text    = string.Format("{0:n0}", overallData.kpi.other.prVsPOValue.data.Zero);
            lbl_kpiOtherPRsVsPOValue_Three.Text  = string.Format("{0:n0}", overallData.kpi.other.prVsPOValue.data.LessOneWeek);
            lbl_kpiOtherPRsVsPOValue_Four.Text   = string.Format("{0:n0}", overallData.kpi.other.prVsPOValue.data.LessTwoWeeks);
            lbl_kpiOtherPRsVsPOValue_Five.Text   = string.Format("{0:n0}", overallData.kpi.other.prVsPOValue.data.LessThreeWeeks);
            lbl_kpiOtherPRsVsPOValue_Six.Text    = string.Format("{0:n0}", overallData.kpi.other.prVsPOValue.data.LessFourWeeks);
            lbl_kpiOtherPRsVsPOValue_Seven.Text  = string.Format("{0:n0}", overallData.kpi.other.prVsPOValue.data.LessFiveWeeks);
            lbl_kpiOtherPRsVsPOValue_Eight.Text  = string.Format("{0:n0}", overallData.kpi.other.prVsPOValue.data.LessSixWeeks);
            lbl_kpiOtherPRsVsPOValue_Nine.Text   = string.Format("{0:n0}", overallData.kpi.other.prVsPOValue.data.LessSevenWeeks);
            lbl_kpiOtherPRsVsPOValue_Ten.Text    = string.Format("{0:n0}", overallData.kpi.other.prVsPOValue.data.LessEightWeeks);
            lbl_kpiOtherPRsVsPOValue_Eleven.Text = string.Format("{0:n0}", overallData.kpi.other.prVsPOValue.data.LessNinePlusWeeks);



            // KPI -> Other - Hot Jon PRs
            lbl_kpiOtherHotJobPrs_One.Text    = "$" + string.Format("{0:n}", overallData.kpi.other.hotJobPrs.data.TotalValue);
            lbl_kpiOtherHotJobPrs_Two.Text    = string.Format("{0:n0}", overallData.kpi.other.hotJobPrs.data.Zero);
            lbl_kpiOtherHotJobPrs_Three.Text  = string.Format("{0:n0}", overallData.kpi.other.hotJobPrs.data.LessOneWeek);
            lbl_kpiOtherHotJobPrs_Four.Text   = string.Format("{0:n0}", overallData.kpi.other.hotJobPrs.data.LessTwoWeeks);
            lbl_kpiOtherHotJobPrs_Five.Text   = string.Format("{0:n0}", overallData.kpi.other.hotJobPrs.data.LessThreeWeeks);
            lbl_kpiOtherHotJobPrs_Six.Text    = string.Format("{0:n0}", overallData.kpi.other.hotJobPrs.data.LessFourWeeks);
            lbl_kpiOtherHotJobPrs_Seven.Text  = string.Format("{0:n0}", overallData.kpi.other.hotJobPrs.data.LessFiveWeeks);
            lbl_kpiOtherHotJobPrs_Eight.Text  = string.Format("{0:n0}", overallData.kpi.other.hotJobPrs.data.LessSixWeeks);
            lbl_kpiOtherHotJobPrs_Nine.Text   = string.Format("{0:n0}", overallData.kpi.other.hotJobPrs.data.LessSevenWeeks);
            lbl_kpiOtherHotJobPrs_Ten.Text    = string.Format("{0:n0}", overallData.kpi.other.hotJobPrs.data.LessEightWeeks);
            lbl_kpiOtherHotJobPrs_Eleven.Text = string.Format("{0:n0}", overallData.kpi.other.hotJobPrs.data.LessNinePlusWeeks);
        }
 private void linkLabel_overall_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     Overall overall = new Overall();
     overall.Show();
 }
        /// <summary>
        /// Apply the filters and load the data again with the filters applied.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btn_applyFilters_Click(object sender, EventArgs e)
        {
            Filters.FitlerValues.Clear();

            foreach (int i in ChkdListBx_Material.CheckedIndices)
            {
                Filters.FitlerValues.material.Add(ChkdListBx_Material.Items[i].ToString());
            }

            foreach (int i in ChkdListBx_MaterialGroup.CheckedIndices)
            {
                Filters.FitlerValues.materialGroup.Add(ChkdListBx_MaterialGroup.Items[i].ToString());
            }

            foreach (int i in ChkdListBx_Vendor.CheckedIndices)
            {
                Filters.FitlerValues.vendor.Add(ChkdListBx_Vendor.Items[i].ToString());
            }

            foreach (int i in ChkdListBx_VendorDesc.CheckedIndices)
            {
                Filters.FitlerValues.vendorDesc.Add(ChkdListBx_VendorDesc.Items[i].ToString());
            }

            foreach (int i in ChkdListBx_PurchGroup.CheckedIndices)
            {
                Filters.FitlerValues.purchGroup.Add(ChkdListBx_PurchGroup.Items[i].ToString());
            }

            foreach (int i in ChkdListBx_IRSuppName.CheckedIndices)
            {
                Filters.FitlerValues.irSuppName.Add(ChkdListBx_IRSuppName.Items[i].ToString());
            }

            foreach (int i in ChkdListBx_FxdSuppName.CheckedIndices)
            {
                Filters.FitlerValues.fxdSuppName.Add(ChkdListBx_FxdSuppName.Items[i].ToString());
            }

            foreach (int i in ChkdListBx_DsrdSuppName.CheckedIndices)
            {
                Filters.FitlerValues.dsrdSuppName.Add(ChkdListBx_DsrdSuppName.Items[i].ToString());
            }

            foreach (int i in ChkdListBx_CommodityCat.CheckedIndices)
            {
                Filters.FitlerValues.commCategory.Add(ChkdListBx_CommodityCat.Items[i].ToString());
            }


            BuildQueryFilters();
            HasFiltersAdded();
            if (FiltersAdded)
            {
                Filters.SecondaryFilterQuery = filters;
                filters             = " AND " + filters;
                Filters.FilterQuery = filters;
                FiltersApplied      = true;
            }
            else
            {
                filters                      = string.Empty;
                Filters.FilterQuery          = filters;
                Filters.SecondaryFilterQuery = filters;
                FiltersApplied               = false;
            }



            // Check if the user added a PR date range
            if (Filters.PrDateRangeFilterAdded)
            {
                Filters.PrFromDate = dp_PRFromDate.Value;
                Filters.PrToDate   = dp_PRToDate.Value;
                FiltersApplied     = true;
            }



            // Check if the user added a PO date range
            if (Filters.PoDateRangeFilterAdded)
            {
                Filters.PoFromDate = dp_POFromDate.Value;
                Filters.PoToDate   = dp_POToDate.Value;
                FiltersApplied     = true;
            }



            overallData = new Overall();
            PRPO_DB_Utils.DataLoadProcessStarted = false;
            PRPO_DB_Utils.DataLoaded             = false;
            PRPO_DB_Utils.CompletedDataLoads     = 0;
            PRPO_DB_Utils.ScheduledDataLoads     = 0;
            DataLoaderTimer.Start();
        }
        private static void ReturnOverAllMarkForStudent(ref Student student, ref Overall overallStudent, float[] overallMarks, ref float overallMark)
        {
            for (int i = 0; i < overallMarks.Length; i++)
            {
                overallMark += overallMarks[i];
            }

            overallMark = overallMark / student.subjects.Length;

            overallStudent.overallMark = overallMark;
            overallStudent.studentName = student.Name;
        }
        public static Overall Swap(Overall[] students, int max, int i)
        {
            Overall temp;

            temp = students[i];
            students[i] = students[max];
            students[max] = temp;
            return temp;
        }
        public static Overall[] SelectionSortingAlgorithm(Overall[] students)
        {
            int max;

            for (int i = 0; i < students.Length - 1; i++)
            {
                max = i;
                for (int j = i + 1; j < students.Length; j++)
                    if (students[j].overallMark > students[max].overallMark)
                        max = j;

                Swap(students, max, i);
            }

            return students;
        }
        public static Overall[] GetTheStudentsWithOrderedListByOverallMarks(Student[] students)
        {
            var finalList = new Overall[students.Length];

            for (int i = 0; i < students.Length; i++)
            {
                finalList[i] = GetOverallForOneStudent(students[i]);
            }

            finalList = SelectionSortingAlgorithm(finalList);

            return finalList;
        }