/****************************************************************** * OPERATIONS - WRITE OUT LEAGUE DATA * ******************************************************************/ public static void writeLeague(StreamWriter writingOutFootball, League thisLeague) { //write out all its details writingOutFootball.WriteLine(thisLeague.getLeagueName()); writingOutFootball.WriteLine(thisLeague.getLeagueSponsor()); writingOutFootball.WriteLine(thisLeague.getLeaguePrize()); writingOutFootball.WriteLine(thisLeague.getNumLeagueFixtures()); }
/****************************************************************** * EDIT LEAGUE - GET THE DETAILS OF THE SELECTED LEAGUE * ******************************************************************/ private void getLeagueDetails() { // get the current league... League currentLeague = (League)frmMainMenu.allLeagues[frmMainMenu.leagueSelected]; // set the forms values to the current leagues values... txtLeagueName.Text = currentLeague.getLeagueName(); txtLeagueSponsor.Text = currentLeague.getLeagueSponsor(); txtLeaguePrize.Text = currentLeague.getLeaguePrize(); txtLeagueNumFixtures.Text = currentLeague.getNumLeagueFixtures().ToString(); }