示例#1
0
 private void StartGame(object sender, RoutedEventArgs e)
 {
     sizeX = int.Parse(InputX.Text);
     sizeY = int.Parse(InputY.Text);
     Game  = new Game(sizeX, sizeY, Difficulty.easy);
     GenerateGrid(sizeX, sizeY);
     Game.GenerateField();
     InputGrid.Visibility = Visibility.Hidden;
     Reset.Click         += ResetGame;
 }