Пример #1
0
 /// <summary>
 /// KillScanner - Scans for red colored kill message.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Scanner_RedKill_DoWork(object sender, DoWorkEventArgs e)
 {
     while (!Scanner_RedKill.CancellationPending)
     {
         //Check for Kill
         if (learninghelper.CheckForKill(GetScreenData()))
         {
             Scanner_RedKill.ReportProgress(1, "");
         }
         else
         {
             Scanner_RedKill.ReportProgress(0, "");
         }
         Thread.Sleep(iKillCheckInterval);
     }
 }