Esempio n. 1
0
        private void button_MouseDown(object sender, MouseEventArgs e)
        {
            Button button   = (Button)sender;
            Point  location = (Point)button.Tag;

            if (e.Button == MouseButtons.Left)
            {
                presenter.RevealSquare(location.X, location.Y);
            }
            else if (e.Button == MouseButtons.Right)
            {
                presenter.FlagSquare(location.X, location.Y);
            }
        }