public static void OnTickfinishedEvent(object sender, SimulationEventArgs e) { Console.WriteLine("Received TickFinished event"); }
private void OnTickFinished(object sender, SimulationEventArgs e) { IncreaseProgressBar(); }
public static void OnSimStartEvent(object sender, SimulationEventArgs e) { Console.WriteLine("Received SimulationStarted event"); }
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(); }