Пример #1
0
 private void tsmiDemoSortingBooks_Click(object sender, EventArgs e)
 {
     _searchRegionForm.Show(this.dockPanelMain, AppConfig.searchRegionDockState);
     _simulationForm.Show(this.dockPanelMain, AppConfig.simulationDockState);
     _linearGuideForm.Show(this.dockPanelMain, AppConfig.linearGuideDockState);
     _sortingBooksForm.Show(this.dockPanelMain, AppConfig.sortingBooksDockState);
 }
Пример #2
0
 public virtual void ShowSimulationWindow(string tabName)
 {
     if (Specification != null)
     {
         if (Specification.GetProcessNames().Count > 0)
         {
             SimulationForm SimulationForm = InstanciateSimulationForm();
             try
             {
                 if (SimulationForm != null)
                 {
                     SimulationForm.SetSpec(tabName, Specification);
                     SimulationForm.Show();
                 }
                 else
                 {
                     MessageBox.Show(Resources.ModuleFacadeBase_ShowSimulationWindow_Simulation_is_not_supported_in_this_module_, Common.Ultility.Ultility.APPLICATION_NAME, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                 }
             }
             catch (Exception ex)
             {
                 SimulationForm.Close();
             }
         }
         else
         {
             MessageBox.Show(Resources.Please_input_at_least_one_runnable_process__process_with_no_parameters__, Common.Ultility.Ultility.APPLICATION_NAME, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
         }
     }
 }