private void gridButtonRightClicked(object sender, MouseButtonEventArgs e) { MineButton button = (MineButton)sender; game.flag(button.getRow(), button.getColumn()); this.renderBoard(); }
private void gridButtonClicked(object sender, EventArgs e) { MineButton button = (MineButton)sender; List <List <Cell> > cells = game.getCells(); game.touch(button.getRow(), button.getColumn()); this.renderBoard(); }