private void processesComboBox_SelectionChangeCommitted(object sender, EventArgs e) { ResetButtonText(false); if (pd != null) { pd.StopDebugging(); pd.Join(); pd = null; } }
public void Stop() { if (pd != null) { pd.StopDebugging(); } }
public bool Detach() { if (overlay != null) { overlay.Close(); overlay.Dispose(); overlay = null; } syncTimer.Stop(); gameCheckTimer.Stop(); selectedUnitTimer.Stop(); if (Pickit != null) { Pickit.Stop(); Pickit = null; } if (MapHandler != null) { MapHandler.Reset(); MapHandler = null; } if (AutoTeleport != null) { AutoTeleport.Terminate(); AutoTeleport = null; } PlayerInfo = null; if (Installed) { try { pd.StopDebugging(); pd.Join(); pd = null; } catch { return(false); } } return(true); }