Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ScheduleViewModel" /> class.
 /// </summary>
 public SchedulerBindingViewModel()
 {
     this.Appointments          = new ObservableCollection <Event>();
     this.MonthCellAppointments = new ObservableCollection <Event>();
     this.CreateRandomNumbersCollection();
     this.CreateStartTimeCollection();
     this.CreateEndTimeCollection();
     this.CreateSubjectCollection();
     this.CreateColorCollection();
     this.InitializeDataForBookings();
     this.IntializeAppoitments();
     this.CreateRecurrsiveExceptionAppointments();
     this.CreateRecurrsiveAppointments();
     this.InitializeResources();
     this.BookingResourceAppointments();
     this.CreateMonthCellAppointments();
     this.CreateSpecialTimeRegionAppointments();
     this.InitializeAppointmentCustomization();
     this.SchedulerViewTypes = SchedulerViewTypeHelper.GetSchedulerViewTypes();
     this.AppointmentCustomizationViewTypes = SchedulerViewTypeHelper.GetAppointmentCustomizationViewTypes();
     this.ResourceSchedulerViewTypes        = SchedulerViewTypeHelper.GetResourceSchedulerViewTypes();
     this.TimeSlotCustomizationViewTypes    = SchedulerViewTypeHelper.GetTimeSlotSchedulerViewTypes();
     DisplayDate = DateTime.Now.Date.AddHours(9);
     MinDate     = DateTime.Now.Date;
     MaxDate     = DateTime.Now.Date.AddMonths(6);
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LoadOnDemandViewModel" /> class.
 /// </summary>
 public LoadOnDemandViewModel()
 {
     this.DisplayDate         = DateTime.Now.Date.AddHours(9);
     MinDate                  = DateTime.Now.Date;
     MaxDate                  = DateTime.Now.Date.AddMonths(6);
     this.LoadOnDemandCommand = new DelegateCommand(ExecuteOnDemandLoading, CanExecuteOnDemandLoading);
     this.SchedulerViewTypes  = SchedulerViewTypeHelper.GetSchedulerViewTypes();
 }
Example #3
0
 public GettingStartedViewModel()
 {
     Events                  = GenerateRandomAppointments();
     MinDate                 = DateTime.Now.Date.AddMonths(-3);
     MaxDate                 = DateTime.Now.AddMonths(3);
     DisplayDate             = DateTime.Now.Date.AddHours(9);
     this.SchedulerViewTypes = SchedulerViewTypeHelper.GetSchedulerViewTypes();
     this.TimelineViewTypes  = SchedulerViewTypeHelper.GetTimelineViewTypes();
 }