コード例 #1
0
 private void processesComboBox_SelectionChangeCommitted(object sender, EventArgs e)
 {
     ResetButtonText(false);
     if (pd != null)
     {
         pd.StopDebugging();
         pd.Join();
         pd = null;
     }
 }
コード例 #2
0
 public void Stop()
 {
     if (pd != null)
     {
         pd.StopDebugging();
     }
 }
コード例 #3
0
        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);
        }