Пример #1
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);
         }
     }
 }