void Disconnect() { if (connected) { av = null; Connection.BackgroundImage = TrackerUI.Properties.Resources.Disconnected; connected = false; TrackerTimer.Stop(); Reset(); //PostTimer.Stop(); } else { return; } }
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; } }