private void Init()
        {
            var io = new HiHi.IO();

            this.highscores = new HiHi.Highscores(io);
            this.history    = new HiHi.History(io);
        }
Example #2
0
        private void HandleIO(KeyValuePair <int, string> winner)
        {
            var io = new HiHi.IO();

            io.CreateFiles();

            var hs  = new HiHi.Highscores(io);
            var his = new HiHi.History(io);

            hs.WriteToFile(winner);
            his.WriteToFile(winner);
        }