Esempio n. 1
0
 /// <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);
 }
Esempio n. 2
0
 /// <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();
 }
Esempio n. 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();
 }
        /// <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();
        }
Esempio n. 5
0
 /// <summary>
 /// Method to initialize scheduler view type collection.
 /// </summary>
 private void InitializeSchedulerViewTypes()
 {
     this.SchedulerViewTypes         = SchedulerViewTypeHelper.GetSchedulerViewTypes();
     this.ResourceSchedulerViewTypes = SchedulerViewTypeHelper.GetResourceSchedulerViewTypes();
 }