Пример #1
0
 protected void Stop_Clicked(object sender, EventArgs args)
 {
     if (botThread != null)
     {
         if (bot.On || bot.isRunning)
         {
             bot.Stop();
             botThread.Join();
             botThread = null;
         }
     }
 }
Пример #2
0
        public async static Task forceRun()
        {
            Console.WriteLine("Forcing bot to run now.");
            if (bot.On)
            {
                bot.Stop();
            }

            bot.runChecks();
        }