示例#1
0
 public ShellViewModel()
 {
     DisplayName            = "Sign";
     _startHoursItems       = new StartHours();
     _endHoursItems         = new EndHours();
     _windowManager         = new WindowManager();
     _calendarServiceClient = new CalendarServiceClient();
     StartHourIndex         = 0;
     EndHourIndex           = 0;
     EnableAddUser          = false;
 }
示例#2
0
        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]));
            }
        }