Пример #1
0
        public void ReInit(TimeMerge.Model.SingleDayData dayData, SingleMonthViewModel parentMonthVM, List <TimeMerge.Model.SingleDayData> dayModelsList)
        {
            _dayData       = dayData;
            _parentMonthVM = parentMonthVM;

            // Synchronize the collection of single day ViewModels with collection of single day Models
            if (dayModelsList != null && !dayModelsList.Contains(dayData))
            {
                dayModelsList.Add(dayData);
            }

            if (this.IsNotificationTurnedOn())
            {
                notifyAllPropertiesChanged();
            }
        }
Пример #2
0
 public NotesPanelViewModel(SingleMonthViewModel monthViewModel, int dayNumber)
 {
     _monthViewModel = monthViewModel;
     _dayNumber      = dayNumber;
 }