Example #1
0
 public MonitoringNodeBase(MonitoringNodeBase parent = null)
 {
     _parent                     = parent;
     _status                     = SensorStatus.Unknown;
     _lastStatusUpdate           = DateTime.Now;
     SubNodes                    = new ObservableCollection <MonitoringNodeBase>();
     Sensors                     = new ObservableCollection <MonitoringSensorViewModel>();
     _nameToSensor               = new Dictionary <string, MonitoringSensorViewModel>();
     _nameToNode                 = new Dictionary <string, MonitoringNodeBase>();
     SubNodes.CollectionChanged += Content_CollectionChanged;
     Sensors.CollectionChanged  += Content_CollectionChanged;
 }
Example #2
0
 public MonitoringNodeBase(string name, MonitoringNodeBase parent = null) : this(parent)
 {
     _name = name;
 }