예제 #1
0
 private void ToadButton_Click(object sender, RoutedEventArgs e)
 {
     if (!game.SetTo(new ToadShape()))
     {
         DisplayGridTooSmallErrorMessage();
     }
 }
예제 #2
0
 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;
 }