Example #1
0
 private void buttonBegin_Click(object sender, EventArgs e)
 {
     if (!running)
     {
         bob          = new Watcher(Dota2, CHealthAddress, MHealthAddress, DeadAddress, TimerAddress, this);
         voyeurThread = new Thread(bob.PleaseWatch);
         voyeurThread.IsBackground = true;
         voyeurThread.Start();
         //ellie = new Goulding(this);
         //lightsThread = new Thread(ellie.repetition);
         //lightsThread.IsBackground = true;
         //lightsThread.Start();
         buttonBegin.Text = "Stop Evaluation";
     }
     else
     {
         //ellie.stopRepetition();
         //lightsThread.Join();
         bob.StopWatching();
         voyeurThread.Join();
         buttonBegin.Text = "Begin Evaluation";
     }
 }
Example #2
0
 private void buttonBegin_Click(object sender, EventArgs e)
 {
     if (!running)
     {
         bob = new Watcher(Dota2, CHealthAddress, MHealthAddress, DeadAddress, TimerAddress, this);
         voyeurThread = new Thread(bob.PleaseWatch);
         voyeurThread.IsBackground = true;
         voyeurThread.Start();
         //ellie = new Goulding(this);
         //lightsThread = new Thread(ellie.repetition);
         //lightsThread.IsBackground = true;
         //lightsThread.Start();
         buttonBegin.Text = "Stop Evaluation";
     }
     else
     {
         //ellie.stopRepetition();
         //lightsThread.Join();
         bob.StopWatching();
         voyeurThread.Join();
         buttonBegin.Text = "Begin Evaluation";
     }
 }