Beispiel #1
0
        private void pictureBox1_MouseUp(object sender, MouseEventArgs e)
        {
            prgbTime.Value = 0;
            lblTime.Text   = "0";
            //View.Menu.Client.Send(Encoding.Unicode.GetBytes("PlayerPlay`" + competitorID + "`" + e.X + "`" + e.Y));
            bool end = chesscontrol.PlayerPress(ref player, e.X, e.Y);

            pictureBox1.Refresh();
            if (end)
            {
                timer1.Stop();
                MessageBox.Show(player.ToString() + " Win!");
            }
        }