private void gridButtonRightClicked(object sender, MouseButtonEventArgs e) { MineButton button = (MineButton)sender; game.flag(button.getRow(), button.getColumn()); this.renderBoard(); }