public ClientDialogModelBase(ISensorHistoryConnector connector, MonitoringSensorViewModel sensor)
 {
     _path      = sensor.Path;
     _connector = connector;
     _name      = sensor.Name;
     _product   = sensor.Product;
 }
Ejemplo n.º 2
0
 public ClientDefaultValuesListSensorModel(ISensorHistoryConnector connector,
                                           MonitoringSensorBaseViewModel sensor) : base(connector, sensor)
 {
     List = new ObservableCollection <DefaultSensorModel>();
     List.CollectionChanged += List_CollectionChanged;
     UpdateData();
 }
Ejemplo n.º 3
0
 protected ClientBarSensorModel(ISensorHistoryConnector connector, MonitoringSensorViewModel sensor) : base(connector, sensor)
 {
     Items = new Collection <BoxPlotItem>();
     //Points = new Collection<OhlcPoint>();
     Labels = new Collection <string>();
     Count  = 5;
     Title  = _path;
 }
 protected ClientDialogTimerModel(ISensorHistoryConnector connector, MonitoringSensorViewModel sensor,
                                  int timerInterval = 5000) : base(connector, sensor)
 {
     _interval          = timerInterval;
     _continue          = true;
     _dialogTimerThread = new Thread(Timer_Loop);
     _dialogTimerThread.Start();
 }
Ejemplo n.º 5
0
        public ClientDialogModelBase(ISensorHistoryConnector connector, MonitoringSensorBaseViewModel sensor)
        {
            string             path        = "/" + sensor.Name;
            MonitoringNodeBase currentNode = sensor.Parent;

            while (currentNode != null)
            {
                path        = ("/" + currentNode.Name + path);
                currentNode = currentNode.Parent;
            }

            _path      = path;
            _connector = connector;
            _name      = sensor.Name;
            _product   = sensor.Product;
        }
 public ClientFileSensorModel(ISensorHistoryConnector connector, MonitoringSensorViewModel sensor) : base(connector, sensor)
 {
     _folderPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, _filesFolderName);
     _viewModel  = sensor;
     ThreadPool.QueueUserWorkItem(_ => ExpandValue());
 }
 public ClientIntBarSensorModel(ISensorHistoryConnector connector, MonitoringSensorViewModel sensor) : base(connector, sensor)
 {
 }
 public ClientDoubleTimeValueModel(ISensorHistoryConnector connector, MonitoringSensorViewModel sensor)
     : base(connector, sensor)
 {
 }
 public DialogModelFactory(ISensorHistoryConnector connector)
 {
     _connector = connector;
 }
Ejemplo n.º 10
0
 public DialogModelFactory(ISensorHistoryConnector connector)
 {
     _connector       = connector;
     _sensorModelType = new Dictionary <SensorTypes, Type>();
 }