Example #1
0
        private void playerClick(object sender, EventArgs e)// проверк анажатий на кнопки
        {
            var button = (Button)sender;

            curretPlayer   = Player.X;
            button.Text    = curretPlayer.ToString();//установка параметра отображения на кнопки
            button.Enabled = false;
            buttons.Remove(button);
            Check();
            AITimer.Start();
        }
Example #2
0
        private void buttonClick(object sender, EventArgs e)
        {
            var button = (Button)sender;

            currentPlayer    = Player.X;
            button.Text      = currentPlayer.ToString();
            button.Enabled   = false;
            button.BackColor = System.Drawing.Color.LightBlue;
            Check();
            AITimer.Start();
        }