public ShellViewModel() { DisplayName = "Sign"; _startHoursItems = new StartHours(); _endHoursItems = new EndHours(); _windowManager = new WindowManager(); _calendarServiceClient = new CalendarServiceClient(); StartHourIndex = 0; EndHourIndex = 0; EnableAddUser = false; }
public CalendarViewModel(Calendar calendar, StartHours startHours, EndHours endHours) { DisplayName = "Calendar"; CalendarItems = new ObservableCollection <CalendarItemViewModel>(); for (int i = 0; i < calendar.Items.Length; i++) { CalendarItem calendarItem = calendar.Items[i]; CalendarItems.Add(new CalendarItemViewModel(calendarItem, startHours[i], endHours[i])); } }