Example #1
0
        //***NOTE***- It takes a lot of time when producing a report for a lot of competitors. This could be due to inefficiency.

        public void ClearReports()         //Clears all of the data in the reports section.
        {
            EntriesTextBox.Clear();        //Clears the entires text box.
            IncomeTextBox.Clear();         //Clears the income text box.
            TotalScoresTextBox.Clear();    //Clears the total scores text box.
            TopThreeScoresTextBox.Clear(); //Clears the top three scores text box.
            activeSkiRun.ClearData();      //Clears the top scores lists and the competitor dictionary.
        }
Example #2
0
 private void CreateReports_Click(object sender, RoutedEventArgs e)    //Creates the reports for all of the competitors.
 {
     EntriesTextBox.Clear();                                           //Clears the entires text box.
     IncomeTextBox.Clear();                                            //Clears the income text box.
     TotalScoresTextBox.Clear();                                       //Clears the top three scores text box.
     TopThreeScoresTextBox.Clear();                                    //Clears the top three scores text box.
     EntriesTextBox.Text     = activeSkiRun.GetSkiNumber().ToString(); //Gets number of entires.
     IncomeTextBox.Text      = "£" + activeSkiRun.IncomeValues();      //Gets all of the income from the competitors.
     TotalScoresTextBox.Text = activeSkiRun.TotalScores();             //Gets the total score value.
     activeSkiRun.LoadInAges();                                        //Loads in all of the ages.
     AgeMinTextBox.Text  = activeSkiRun.MinAge();                      //Gets the minumum age.
     AgeMaxTextBox.Text  = activeSkiRun.MaxAge();                      //Gets the maximum age.
     AgeAveTextBox.Text  = activeSkiRun.AveAge();                      //Gets the average age.
     AgeModeTextBox.Text = activeSkiRun.ModeAge();                     //Gets the age that comes up most often.
     TopAmateurScores();                                               //Calls the TopAmateurScores method below.
     TopProfessionalScores();                                          //Calls the TopProfessionalScores method below.
     TopCelebrityScores();                                             //Calls the TopCelebrityScores method below.
 }
Example #3
0
 private void ClearData_Click(object sender, RoutedEventArgs e)
 {
     activeSkiRun.ClearCompData();             //Calls a method in the SkiRun class which empties the dictionary and the lists.
     IncomeTextBox.Clear();                    //Clears the income textbox.
     TotalScoresTextBox.Clear();               //Clears the total scores text box.
     EntriesTextBox.Clear();                   //Clears the ammount of entries the competiton had.
     TopThreeScoresTextBox.Clear();            //Clears the high scores text box so data doesn't overlap.
     AgeMinTextBox.Clear();                    //Clears the minimum age textbox.
     AgeMaxTextBox.Clear();                    //Clears the maximum age textbox.
     AgeAveTextBox.Clear();                    //Clears the average age textbox.
     AgeModeTextBox.Clear();                   //Clears the mode age textbox.
     activeSkiRun.CompetitorAges.Clear();      //Clears the ages list.
     CompetitorNumberTextBox.Text = "000000";  //Resets the competitor number text box.
     NumberTextBox.Clear();                    //Clears the number text box.
     NameTextBox.Clear();                      //Clears the name text box.
     AddressTextBox.Clear();                   //Clears the address text box.
     DetailsTextBox.Clear();                   //Clears the details text box.
     ScoreTextBox.Clear();                     //Clears the scores text box.
     SearchTextBox.Clear();                    //Clears the seach by name text box.
     TagTextBox.Clear();                       //Clears the tag text box.
     SearchByName.Items.Clear();               //Clears the search by name combo box.
 }