Exemple #1
0
 public TemperatureHistoryWindowViewModel(IDataBaseConnector dataBaseConnector, IEventAggregator eventAggregator) : base(dataBaseConnector, eventAggregator)
 {
     Measurements = new ObservableCollection <TemperatureMeasurement>();
     dataBaseConnector.GetSavedMeasurements().ForEach(m => Measurements.Add((TemperatureMeasurement)m));
     eventAggregator.GetEvent <TemperatureSaved>().Subscribe(NewTemperature);
 }