public ControllerLineHistoryRow(DTCDev.Models.DeviceSender.DISP.DevicePresenter.Sensor sensor,
                                 LinesDataModel model)
 {
     InitializeComponent();
     _model  = model;
     _sensor = sensor;
     if (_model != null)
     {
         if (_model.Rows.Count() > 0)
         {
             DisplayParameter(0);
         }
         DisplayGraph();
     }
 }
예제 #2
0
 private void FillLinesData(string row)
 {
     try
     {
         LinesDataModel model = JsonConvert.DeserializeObject <LinesDataModel>(row);
         if (model != null)
         {
             //if (Application.Current != null)
             //    Application.Current.Dispatcher.BeginInvoke(new Action(() =>
             //        {
             if (LinesLoaded != null)
             {
                 LinesLoaded(model);
             }
         }
         //}));
     }
     catch { }
 }
예제 #3
0
 private void Instance_LinesLoaded(LinesDataModel model)
 {
     Lines = model;
 }