예제 #1
0
 private void FillTimeLine() {
     TL?.mainCanvas.Children.Clear();
     try {
         TL = new TimeLine(MainWindow.AppWindow.ActualWidth, 100.0, EndTime_monitor);
         foreach (double timingS in TimingpointsAdded) {
             TL.AddElement(timingS, 1);
         }
         foreach (double timingS in TimingpointsChanged) {
             TL.AddElement(timingS, 2);
         }
         foreach (double timingS in TimingpointsRemoved) {
             TL.AddElement(timingS, 3);
         }
         tl_host.Children.Clear();
         tl_host.Children.Add(TL);
     } catch (Exception ex) {
         Console.WriteLine(ex.Message);
     }
 }
예제 #2
0
 private void FillTimeLine()
 {
     _tl?.mainCanvas.Children.Clear();
     try {
         _tl = new TimeLine(MainWindow.AppWindow.MainContentGrid.ActualWidth, 100.0, _endTimeMonitor);
         foreach (double timingS in _potentialUnloadingObjects)
         {
             _tl.AddElement(timingS, 1);
         }
         foreach (double timingS in _potentialDisruptors)
         {
             _tl.AddElement(timingS, 4);
         }
         foreach (double timingS in _unloadingObjects)
         {
             _tl.AddElement(timingS, 3);
         }
         tl_host.Children.Clear();
         tl_host.Children.Add(_tl);
     } catch (Exception ex) {
         Console.WriteLine(ex.Message);
     }
 }
예제 #3
0
 private void FillTimeLine()
 {
     _tl?.mainCanvas.Children.Clear();
     try {
         _tl = new TimeLine(MainWindow.AppWindow.MainContentGrid.ActualWidth, 100.0, _endTimeMonitor);
         foreach (double timingS in _timingpointsAdded)
         {
             _tl.AddElement(timingS, 1);
         }
         foreach (double timingS in _timingpointsChanged)
         {
             _tl.AddElement(timingS, 2);
         }
         foreach (double timingS in _timingpointsRemoved)
         {
             _tl.AddElement(timingS, 3);
         }
         tl_host.Children.Clear();
         tl_host.Children.Add(_tl);
     } catch (Exception ex) {
         Console.WriteLine(ex.Message);
     }
 }