Beispiel #1
0
        public CodeMain()
        {
            InitializeComponent();
            this.ShowInTaskbar = false;

            Timer = new GameTimer();
            CreateGuessForms(8);
            NewGame();

            Records        = RecordsRepository.GetRecords();
            TotalGames     = 0;
            TimePlayed     = new TimeSpan(0);
            GameInProgress = false;
        }
Beispiel #2
0
 private void CodeMain_FormClosed(object sender, FormClosedEventArgs e)
 {
     RecordsRepository.SaveRecords(Records);
 }