Exemplo n.º 1
0
 private void _VR33BTerminal_OnVR33BSampleStarted(object sender, VR33BSampleProcess e)
 {
     OxyPlotModel.Title  = e.Name.ToString();
     _LoadedSampleValues = new VR33BSampleValue[0];
     TimeSpanPlotAxis.Pan((((_LatestPlotAxisActualMinMax.ActualMaximum - _LatestPlotAxisActualMinMax.ActualMinimum) * 0.5 + _LatestPlotAxisActualMinMax.ActualMinimum) - 0) * TimeSpanPlotAxis.Scale);
     OxyPlotView.InvalidatePlot();
 }
Exemplo n.º 2
0
 private void _VR33BTerminal_OnVR33BSampleStarted(object sender, VR33BSampleProcess e)
 {
     _CurrentSampleProcess = e;
     Task.Run(() =>
     {
         _DataContextLock.EnterWriteLock();
         {
             _DataContext.SampleProcessEntities.Add(VR33BSampleProcessEntity.FromStruct(_CurrentSampleProcess));
             _DataContext.SaveChanges();
         }
         _DataContextLock.ExitWriteLock();
     });
 }