Exemplo n.º 1
0
        private void gridButtonRightClicked(object sender, MouseButtonEventArgs e)
        {
            MineButton button = (MineButton)sender;

            game.flag(button.getRow(), button.getColumn());
            this.renderBoard();
        }
Exemplo n.º 2
0
        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();
        }