Esempio n. 1
0
 public Day GetOrCreateDay(DateTime dateTime)
 {
     Day day;
     if (_dict.TryGetValue(dateTime, out day))
     {
         return day;
     }
     day =  new Day(dateTime, DayState.NotSet);
     SetDay(day);
     return day;
 }
Esempio n. 2
0
 public DayViewModel(Day day, Action changed)
 {
     _day = day;
     _changed = changed;
     _toggleStateCommand = new DelegateCommand(ToggleState);
 }
Esempio n. 3
0
 public void SetDay(Day day)
 {
     _dict[day.Date] = day;
 }
Esempio n. 4
0
 public AppState(Day[] days)
 {
     Days = days;
 }