private void NewGame() { if ((Cols * Rows) > Mines) { game = new Game(Cols, Rows, Mines); MineGridSource.ItemsSource = GameGrid; ResizeGrid(); } }
public MainWindow() { InitializeComponent(); { GameWindow.DataContext = this; Rows = 10; Cols = 10; Mines = 20; game = new Game(Cols, Rows, Mines); ResizeGrid(); } }
public ConsoleView(Game game) { m_game = game; }