private void FinnishGame() { if (g.IsGameOver(ppl, s) == true) { g.RegPlayer(); this.Hide(); Finnish f = new Finnish(g, logType); f.ShowDialog(); } }
public void AddToScoreBoard(List <Player> player) { foreach (Player y in player) { Finnish f = new Finnish() { name = y.name, total = y.total }; endScore.Add(f); } }