private void btnGameStart_Click(object sender, EventArgs e) { game = new NIM_Game(); game.GameReset(); if (settings.CustomGame.Count() == 0) { game.GameStart(settings.RowNumb); game.CreateGameWithRandomRows(settings.RowMinHeight, settings.RowMaxHeight); } else { game.GameStartCustom(settings.CustomGame); } Game FormGame = new Game(game, settings); FormGame.ShowDialog(); }
public Game(NIM_Game ActiveGame, NIM_Game_Settings InpSettings) { InitializeComponent(); this.game = ActiveGame; this.settings = InpSettings; }