Beispiel #1
0
        private void Form1_FormClosed(object sender, FormClosedEventArgs e)
        {
            int tries = 0;

Start:
            try
            {
                GameHandle.StopTheGame();
                bot.Stop();
            }
            catch (Exception exc)
            {
                tries++;
                if (tries < 10)
                {
                    goto Start;
                }
            }
        }
Beispiel #2
0
 private void CancelGame()
 {
     GameHandle.StopTheGame();
 }