public CodeMain() { InitializeComponent(); this.ShowInTaskbar = false; Timer = new GameTimer(); CreateGuessForms(8); NewGame(); Records = RecordsRepository.GetRecords(); TotalGames = 0; TimePlayed = new TimeSpan(0); GameInProgress = false; }
private void CodeMain_FormClosed(object sender, FormClosedEventArgs e) { RecordsRepository.SaveRecords(Records); }