Exemplo n.º 1
0
        private void DoctorEventController_ViewControlsCreated(object sender, EventArgs e)
        {
            PanelControl panelControl = View.Control as PanelControl;

            if (panelControl != null && panelControl.Controls.Count > 0)
            {
                SchedulerControl scheduler = panelControl.Controls[0] as SchedulerControl;
                activeView = scheduler.ActiveView;
                scheduler.ActiveViewChanged += mainControl_ActiveViewChanged;

                SetDefaultInterval();
            }
        }
Exemplo n.º 2
0
        protected SchedulerViewCellContainerCollection GetCellContainers(SchedulerViewBase view)
        {
            DayView dayView = view as DayView;

            if (dayView != null)
            {
                return(dayView.ViewInfo.Columns);
            }

            WeekView weekView = view as WeekView;

            if (weekView != null)
            {
                return(weekView.ViewInfo.Weeks);
            }

            TimelineView timeLineView = view as TimelineView;

            return(timeLineView.ViewInfo.Timelines);
        }
        void UpdateSchedulerSelection(AppointmentBaseCollection appointments)
        {
            if (appointments.Count <= 0)
            {
                return;
            }

            SchedulerViewBase view = schedulerControl1.ActiveView;

            view.SelectAppointment(appointments[0]);

            schedulerControl1.BeginUpdate();
            try {
                for (int i = 1; i < appointments.Count; i++)
                {
                    view.AddAppointmentSelection(appointments[i]);
                }
            } finally {
                schedulerControl1.EndUpdate();
            }
        }