private void Init() { var io = new HiHi.IO(); this.highscores = new HiHi.Highscores(io); this.history = new HiHi.History(io); }
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); }