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