public void ViewFirstPlaceTextBox() { string firstPlace = ""; Student firstPlacestu = Student.sortByRating()[0]; FirstPlace.Text = "First Place:" + " " + firstPlacestu.getRating().ToString(); firstPlace = firstPlacestu.getFullName() + " Group Number: " + firstPlacestu.getStudentGroup().getId().ToString(); FirstPlaceTextBox.Text = firstPlace; }
public void ViewSecondPlaceTextBox() { string secondPlace = ""; Student secondPlacestu = Student.sortByRating()[1]; SecondPlace.Text = "Second Place:" + " " + secondPlacestu.getRating().ToString(); secondPlace = secondPlacestu.getFullName() + " Group Number: " + secondPlacestu.getStudentGroup().getId().ToString(); SecondPlaceTextBox.Text = secondPlace; }
public void ViewThirdPlaceTextBox() { string thirdPlace = ""; Student thirdPlaceStu = Student.sortByRating()[2]; ThirdPlace.Text = "Third Place:" + " " + thirdPlaceStu.getRating().ToString(); thirdPlace = thirdPlaceStu.getFullName() + " Group Number: " + thirdPlaceStu.getStudentGroup().getId().ToString(); ThirdPlaceTextBox.Text = thirdPlace; }