Esempio n. 1
0
        private void btnClick(object sender, EventArgs e)
        {
            int          iPlayer = 0;
            MouseButtons p       = (e as MouseEventArgs).Button;

            if ((p & MouseButtons.Middle) != 0)
            {
                iPlayer = 1;
            }
            CField pTag = (sender as Control).Tag as CField;

            if (pTag == null)
            {
                return;
            }

            m_pGame.Click(pTag.X, pTag.Y, -1);
            h_Refresh();
        }