Exemplo n.º 1
0
        /// <summary>
        /// Add game to stats
        /// </summary>
        public static void addGameToStats(GameResult game, bool bSaveToDisk = true)
        {
            Dbg.assert(game != null);

            games.Add(game);

            // Save immediately if needed
            if (bSaveToDisk)
            {
                StatSaver.save();
            }
        }
Exemplo n.º 2
0
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     // Save stats
     StatSaver.save();
     Config.save();
 }