Beispiel #1
0
 private void ReportProgress(SimulationProgressStatus progress)
 {
     if ((DateTime.Now - lastUpdate) > TimeSpan.FromMilliseconds(10))
     {
         lastUpdate = DateTime.Now;
         dispatcher.InvokeIfRequired(() => ProgressStatus(progress));
     }
 }
 private void ProgressStatusChanged(SimulationProgressStatus status)
 {
     statusViewModel.Status = status;
 }