Example #1
0
 public static void OnTickfinishedEvent(object sender, SimulationEventArgs e)
 {
     Console.WriteLine("Received TickFinished event");
 }
Example #2
0
 private void OnTickFinished(object sender, SimulationEventArgs e)
 {
     IncreaseProgressBar();
 }
Example #3
0
 public static void OnSimStartEvent(object sender, SimulationEventArgs e)
 {
     Console.WriteLine("Received SimulationStarted event");
 }
Example #4
0
 private void OnSimulationStarted(object sender, SimulationEventArgs e)
 {
     _secondContainer.OuputPanel.Invoke(new Action(() =>
     {
         if (_simulator.SimulationDuration == 0)
             _secondContainer.OuputPanel.SetProgressBarStyle(ProgressBarStyle.Marquee);
         else
         {
             _secondContainer.OuputPanel.SetProgressBarValue(0);
             _secondContainer.OuputPanel.SetProgressBarMax((int)
                    (_simulator.SimulationDuration +
                    ((float)_simulator.SimulationDuration / _simulator.SimulationIntervall /
                     _simulator.SnapshotIntervall) +
                    3)); /* Start: 1
                           * Ended: 1
                           * Finished: 1
                           */
         }
     }));
     IncreaseProgressBar();
 }