Esempio n. 1
0
        /// <summary>
        /// Launch the project selection form for the addin. Called from the Exec method above.
        /// </summary>
        public void DisplayLaunchForm()
        {
            // Show the form.
            LaunchForm lf = new LaunchForm(_applicationObject);

            System.Windows.Forms.DialogResult result = lf.ShowDialog();
            if (result == System.Windows.Forms.DialogResult.OK)
            {
                // The user clicked on Ok in the form, so launch the file using the sample debug engine.
                LaunchDebugTarget(lf.Command, lf.CommandArguments, lf.WorkingDir);
            }
            else if (result == System.Windows.Forms.DialogResult.Yes)
            {
                AttachDebugTarget(lf.SelectedProcessID);
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Launch the project selection form for the addin. Called from the Exec method above.
 /// </summary>
 public void DisplayLaunchForm()
 {
     // Show the form.
     LaunchForm lf = new LaunchForm(_applicationObject);
     System.Windows.Forms.DialogResult result = lf.ShowDialog();
     if (result == System.Windows.Forms.DialogResult.OK)
     {
         // The user clicked on Ok in the form, so launch the file using the sample debug engine.
         LaunchDebugTarget(lf.Command, lf.CommandArguments, lf.WorkingDir);
     }
     else if (result == System.Windows.Forms.DialogResult.Yes)
     {
         AttachDebugTarget(lf.SelectedProcess);
     }
 }