/// <summary> /// Loads all the information. /// </summary> public void Load() { TennisClub tempClass = Serialization.Deserialize <TennisClub>(SaveFilePath); this.studentList = tempClass.studentList; this.coachList = tempClass.coachList; this.lesson_Fees = tempClass.lesson_Fees; }
/// <summary> /// Initialises a new instance of the Tennis_Management_Software.MainForm class. /// </summary> public MainForm() { InitializeComponent(); personPictureBox.BackgroundImage = Properties.Resources.NoImage; Tennis_Club = new TennisClub(); Tennis_Club.Load(); studentCoachCBOX.SelectedIndex = 0; FillDataGridView(Tennis_Club.StudentList, true); UpdateStatInfoLabelText(); personInfo.ID = PersonInfo.NullValue; }