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(); } }
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 { } }
private void Instance_LinesLoaded(LinesDataModel model) { Lines = model; }