Exemplo n.º 1
0
        private void PanelGameBoard_MouseClick(object sender, MouseEventArgs e)
        {
            int x = e.X;
            int y = e.Y;

            GameStarted?.Invoke(x, y);

            //togle flag
            if (e.Button == MouseButtons.Right)
            {
                FlagToggled?.Invoke(x, y);
            }

            if (e.Button == MouseButtons.Left)
            {
                Dig?.Invoke(x, y);
            }
        }