public searchProcessController(SearchProcess sp, int processNum)
        {
            /* the following is common to all GS window types. */
            InitializeComponent();
            Owner = GSApp.main;
            //ShowInTaskbar = false;
            foreach (CommandBinding cb in GSApp.main.CommandBindings)
            {
                CommandBindings.Add(cb);
            }
            foreach (InputBinding ib in GSApp.main.InputBindings)
            {
                InputBindings.Add(ib);
            }
            /***************************************************/

            try
            {
                InitializePriorityAndVerbosityComboBoxes();
                searchThread = new Thread(sp.RunSearchProcess);
                searchThread.SetApartmentState(ApartmentState.STA);
                searchThread.CurrentCulture = Thread.CurrentThread.CurrentCulture;
                //this.Text = "Search Process #" + processNum.ToString();
                searchThread.Name         = "S" + processNum + "> ";
                cmbPriority.SelectedIndex = 0;
                SearchIO.setVerbosity(searchThread.ManagedThreadId, GSApp.settings.DefaultVerbosity);
                cmbVerbosity.SelectedIndex = GSApp.settings.DefaultVerbosity;
                processTimer.Tick         += updateSPCDisplay;
                processTimer.Interval      = getIntervalFromVerbosity();
            }
            catch (Exception exc)
            {
                ErrorLogger.Catch(exc);
            }
        }
 private void cmbVerbosity_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     try
     {
         SearchIO.setVerbosity(searchThread.ManagedThreadId, cmbVerbosity.SelectedIndex);
     }
     catch (Exception exc)
     {
         ErrorLogger.Catch(exc);
     }
 }
 public searchProcessController(int processNum)
 {
     if (Program.settings.searchControllerInMain)
     {
         this.MdiParent = Program.main;
     }
     InitializeComponent();
     searchThread      = new Thread(new ThreadStart(Program.runSearchProcess));
     this.Text         = "Search Process #" + processNum.ToString();
     searchThread.Name = "S" + processNum.ToString() + "> ";
     priorityComboBox.SelectedIndex = 0;
     SearchIO.setVerbosity(searchThread.Name, Program.settings.defaultVerbosity);
     verbosityComboBox.SelectedIndex = Program.settings.defaultVerbosity;
     processTimer.Tick    += new EventHandler(updateSPCDisplay);
     processTimer.Interval = getIntervalFromVerbosity();
 }
 /* this is the one invoked by the test generation runs:
  * Recognize-->User Choose--Apply
  * Recognize-->Human Choose--Apply */
 public searchProcessController(GraphSynth.Generation.RecognizeChooseApply generation)
 {
     if (Program.settings.searchControllerInMain)
     {
         this.MdiParent = Program.main;
     }
     InitializeComponent();
     searchThread = new Thread(new ThreadStart(generation.runGUIOrRandomTest));
     searchThread.CurrentCulture = Thread.CurrentThread.CurrentCulture;
     this.Text         = generation.GetType().ToString();
     searchThread.Name = "Test> ";
     priorityComboBox.SelectedIndex = 0;
     SearchIO.setVerbosity(searchThread.Name, Program.settings.defaultVerbosity);
     verbosityComboBox.SelectedIndex = Program.settings.defaultVerbosity;
     processTimer.Tick      += new EventHandler(updateSPCDisplay);
     processTimer.Interval   = getIntervalFromVerbosity();
     this.stopButton.Enabled = false;
 }
 private void verbosityComboBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     SearchIO.setVerbosity(searchThread.Name, verbosityComboBox.SelectedIndex);
 }