/// <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(); } }
private void Form1_FormClosing(object sender, FormClosingEventArgs e) { // Save stats StatSaver.save(); Config.save(); }