private void ToadButton_Click(object sender, RoutedEventArgs e) { if (!game.SetTo(new ToadShape())) { DisplayGridTooSmallErrorMessage(); } }
private void Window_Loaded(object sender, RoutedEventArgs e) { game = new GameOfLifeGame(10, 10); game.UpdateEvent += UpdateUI; game.SetTo(new ToadShape()); cellColorPicker = new CellColorPicker(game.settings); cellColorPicker.Title = this.Title; cellColorPicker.Icon = this.Icon; }