Exemple #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;
 }
Exemple #2
0
 public DayViewModel(Day day, Action changed)
 {
     _day = day;
     _changed = changed;
     _toggleStateCommand = new DelegateCommand(ToggleState);
 }
Exemple #3
0
 public void SetDay(Day day)
 {
     _dict[day.Date] = day;
 }
Exemple #4
0
 public AppState(Day[] days)
 {
     Days = days;
 }