Beispiel #1
0
 void Disconnect()
 {
     if (connected)
     {
         av = null;
         Connection.BackgroundImage = TrackerUI.Properties.Resources.Disconnected;
         connected = false;
         TrackerTimer.Stop();
         Reset();
         //PostTimer.Stop();
     }
     else
     {
         return;
     }
 }
Beispiel #2
0
 void Connect(string _processName)
 {
     if (connected == false)
     {
         av.ConnectToGameProcess(_processName);
         if (av.GameProcess == null)
         {
             av = null;  return;
         }
         Connection.BackgroundImage = TrackerUI.Properties.Resources.Connected;
         connected = true;
         TrackerTimer.Start();
         PostTimer.Start();
     }
     else
     {
         return;
     }
 }