public MeterReadingViewModel(MeterReading model, MeterViewModel meterViewModel, SeriesViewModel relatedSeriesViewModel)
        {
            m_Model                         = model;
            m_MeterViewModel                = meterViewModel;
            m_RelatedSeriesViewModel        = relatedSeriesViewModel;
            m_AppointmentResponsibleSubject = model.AppointmentResponsibleSubject;
            m_Model.PropertyChanged        += OnModelPropertyChanged;
            m_Model.RelatedSeries.SeriesColor.PropertyChanged += OnSeriesColorPropertyChanged;
            m_Model.RelatedSeries.PropertyChanged             += OnRelatedSeriesPropertyChanged;
            m_Model.DueDate.PropertyChanged += OnDueDatePropertyChanged;
            var color = Color.FromRgb(m_Model.RelatedSeries.SeriesColor.R, m_Model.RelatedSeries.SeriesColor.G, m_Model.RelatedSeries.SeriesColor.B);

            SeriesColor     = new SolidColorBrush(color);
            m_CalendarEntry = new CalendarEntry(m_Model.DueDate.Begin, m_Model.DueDate.End, m_Model.ReadingMeter.Number, color, m_Model.DueDate.IsAllDay, this);
        }
 public SelectableMeterViewModel(MeterViewModel meterViewModel, bool isSelected)
     : base(isSelected)
 {
     m_MeterViewModel = meterViewModel;
 }