/// <summary> /// Initializes a new instance of the <see cref="ReminderViewModel" /> class. /// </summary> public ReminderViewModel() { this.Events = new ObservableCollection <SchedulerModel>(); this.CreateSchedulerAppointments(); this.SchedulerViewTypes = SchedulerViewTypeHelper.GetSchedulerViewTypes(); DisplayDate = DateTime.Now.Date.AddHours(9); }
/// <summary> /// Method to initialize scheduler view type collection. /// </summary> private void InitializeSchedulerViewTypes() { this.SchedulerViewTypes = SchedulerViewTypeHelper.GetSchedulerViewTypes(); this.AppointmentCustomizationViewTypes = SchedulerViewTypeHelper.GetAppointmentCustomizationViewTypes(); this.ResourceSchedulerViewTypes = SchedulerViewTypeHelper.GetResourceSchedulerViewTypes(); this.TimeSlotCustomizationViewTypes = SchedulerViewTypeHelper.GetTimeSlotSchedulerViewTypes(); }
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(); }
/// <summary> /// Initializes a new instance of the <see cref="LoadOnDemandViewModel" /> class. /// </summary> public LoadOnDemandViewModel() { if (!DesignerProperties.GetIsInDesignMode(new DependencyObject())) { this.LoadOnDemandCommand = new DelegateCommand(ExecuteOnDemandLoading, CanExecuteOnDemandLoading); } this.SchedulerViewTypes = SchedulerViewTypeHelper.GetSchedulerViewTypes(); }
/// <summary> /// Method to initialize scheduler view type collection. /// </summary> private void InitializeSchedulerViewTypes() { this.SchedulerViewTypes = SchedulerViewTypeHelper.GetSchedulerViewTypes(); this.ResourceSchedulerViewTypes = SchedulerViewTypeHelper.GetResourceSchedulerViewTypes(); }