public CustomAppointmentForm(SchedulerControl control, Appointment apt, Event ev)
        {
            Event = ev;
            InitializeComponent();

            Controller = new EventAppointmentFormController(control, apt);
        }
        static void CreateAppointmentFromSelection(SchedulerControl scheduler)
        {
            #region #CreateAppointmentFromSelection
            // Delete all appointments.
            scheduler.Storage.AppointmentStorage.Clear();
            // Select time interval
            scheduler.ActiveView.SetSelection(new TimeInterval(DateTime.Now, new TimeSpan(2, 40, 0)), scheduler.ActiveView.GetResources()[1]);
            // Group by resource.
            scheduler.GroupType = SchedulerGroupType.Resource;
            // Create a new appointment.
            Appointment apt = scheduler.Storage.CreateAppointment(AppointmentType.Normal);

            // Set the appointment's time interval to the selected time interval.
            apt.Start = scheduler.SelectedInterval.Start;
            apt.End   = scheduler.SelectedInterval.End;

            // Set the appointment's resource to the resource which contains
            // the currently selected time interval.
            apt.ResourceId = scheduler.SelectedResource.Id;

            apt.LabelKey = scheduler.Storage.AppointmentStorage.Labels.GetByIndex(1).Id;

            // Add the new appointment to the appointment collection.
            scheduler.Storage.AppointmentStorage.Add(apt);
            #endregion #CreateAppointmentFromSelection
        }
 public void MyGoToToday(SchedulerControl scheduler)
 {
     DateTime startDate = DateTime.Today;
     scheduler.Start = startDate;
     FixVisibleDays(true, scheduler);
     SchedulerStart = scheduler.Start;
 }
Beispiel #4
0
        public static void scheduler_InitAppointmentDisplayText(object sender, AppointmentDisplayTextEventArgs e)
        {
            SchedulerControl  scheduler = sender as SchedulerControl;
            IAppointmentLabel label     = scheduler.DataStorage.Appointments.Labels.GetById(e.Appointment.LabelKey);

            e.Description = String.Format("Label Info:\nDisplayName = '{0}'\nID = '{1}'", label.DisplayName, label.Id.ToString());
        }
Beispiel #5
0
        public static void scheduler_InitAppointmentDisplayText_1(object sender, AppointmentDisplayTextEventArgs e)
        {
            SchedulerControl   scheduler = sender as SchedulerControl;
            IAppointmentStatus status    = scheduler.DataStorage.Appointments.Statuses.GetById(e.Appointment.StatusKey);

            e.Description = String.Format("Status Info:\nDisplayName = '{0}'\nID = '{1}'", status.DisplayName, status.Id.ToString());
        }
Beispiel #6
0
 internal LSXappoint(SchedulerControl schedu, DataRow __dr, ref DataTable _ctTangca) : base(AppointmentType.Normal)
 {
     // this = schedu.Storage.CreateAppointment(AppointmentType.Normal);
     ctTangCa = _ctTangca;
     dr       = __dr;
     // this.CustomFields["ctID"] = ctLichSXID.ToString();
 }
Beispiel #7
0
 static void ConflictCalculator(SchedulerControl scheduler)
 {
     #region #ConflictCalculator
     scheduler.CustomDrawAppointmentBackground += scheduler_CustomDrawAppointmentBackground;
     scheduler.ActiveView.LayoutChanged();
     #endregion #ConflictCalculator
 }
 static void SelectIntervalUsingService(SchedulerControl scheduler)
 {
     #region #SelectIntervalUsingService
     scheduler.CustomDrawTimeCell += scheduler_CustomDrawTimeCell_3;
     scheduler.Services.Selection.SelectedInterval = new TimeInterval(DateTime.Now, new TimeSpan(2, 40, 0));
     #endregion #SelectIntervalUsingService
 }
        public CustomAppointmentServicePlan(ServicePlan sp, SchedulerControl control, Appointment apt, List<OSYS.Controls.ServicePlan.ServicePlanPersonelSurrogate> list, string roomNumber, string guestID, string guestNote,
            DateTime startDateTime, string therapyName, Guid? therapyID, string guestName, string servicePlanID)
        {
            InitializeComponent();
            if (control == null || apt == null)
                throw new ArgumentNullException("control");
            if (control == null || apt == null)
                throw new ArgumentNullException("apt");

            ServisPlanClass = sp;

            RoomNumber = roomNumber;
            GuestID = guestID;
            GuestNote = guestNote;
            personelList = list;
            StartDateTime = startDateTime;

            cbPersonelList.Clear();
            cbPersonelList.ItemsSource = list;
            cbPersonelList.DisplayMember = "Adi";
            cbPersonelList.ValueMember = "PersonelID";

            TherapyName = therapyName;
            TherapyID = therapyID;
            GuestName = guestName;
            ServicePlanID = servicePlanID;
        }
        public CustomAppointmentForm(SchedulerControl control, Appointment apt, bool openRecurrenceForm)
        {
            Guard.ArgumentNotNull(control, "control");
            Guard.ArgumentNotNull(control.DataStorage, "control.DataStorage");
            Guard.ArgumentNotNull(apt, "apt");

            this.openRecurrenceForm = openRecurrenceForm;
            this.controller         = CreateController(control, apt);
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();
            SetupPredefinedConstraints();

            LoadIcons();

            this.control = control;
            this.storage = control.DataStorage;

            this.edtShowTimeAs.Storage         = this.storage;
            this.edtLabel.Storage              = this.storage;
            this.edtResource.SchedulerControl  = control;
            this.edtResource.Storage           = this.storage;
            this.edtResources.SchedulerControl = control;

            SubscribeControllerEvents(Controller);
            SubscribeEditorsEvents();
            BindControllerToControls();
        }
Beispiel #11
0
 static void CustomizeDateNavigationBarCaptionEvent(SchedulerControl scheduler)
 {
     #region #CustomizeDateNavigationBarCaptionEvent
     scheduler.CustomizeDateNavigationBarCaption += scheduler_CustomizeDateNavigationBarCaption;
     scheduler.ActiveView.LayoutChanged();
     #endregion #CustomizeDateNavigationBarCaptionEvent
 }
        public MyAppointmentEditForm(SchedulerControl control, Appointment apt,
                                     bool openRecurrenceForm, RecurrenceType type)
            : base(control, apt, openRecurrenceForm)
        {
            //  汉化
            base.lblSubject.Text         = "主题";
            base.lblLocation.Text        = "位置";
            base.lblLabel.Text           = "标签";
            base.lblStartTime.Text       = "开始时间";
            base.lblEndTime.Text         = "结束时间";
            base.lblResource.Text        = "负责人";
            base.lblPercentComplete.Text = "完成百分比";
            base.chkAllDay.Text          = "全天任务";
            base.btnRecurrence.Text      = "重复设置";
            //  布局
            base.btnRecurrence.Visible = false;

            //  不能修改任务标题
            if (!base.IsNewAppointment)
            {
                base.tbSubject.Enabled = false;
            }


            recurringType = type;
        }
 public CustomAppointmentForm(SchedulerControl control,
                              Appointment apt, bool openRecurrenceForm, RecurrenceType type)
     : base(control, apt, openRecurrenceForm)
 {
     recurringType = type;
     InitializeComponent();
 }
 static void AppointmentAppearance(SchedulerControl scheduler)
 {
     #region #AppointmentAppearance
     scheduler.AppointmentViewInfoCustomizing += scheduler_AppointmentViewInfoCustomizing;
     scheduler.ActiveView.LayoutChanged();
     #endregion #AppointmentAppearance
 }
Beispiel #15
0
        public CustomAppointmentForm(SchedulerControl control, Appointment apt, Event ev)
        {
            Event = ev;
            InitializeComponent();

            Controller = new EventAppointmentFormController(control, apt);
        }
        public DisplayResultControl()
        {
            InitializeComponent();
            this.SchedulerControl = this.schedulerControl1;

            InitHelper.InitResources(CustomResourceCollection);
            InitHelper.InitAppointments(CustomEventList, CustomResourceCollection);

            ResourceMappingInfo mappingsResource = this.schedulerStorage1.Resources.Mappings;

            mappingsResource.Id      = "ResID";
            mappingsResource.Caption = "Name";

            AppointmentMappingInfo mappingsAppointment = this.schedulerStorage1.Appointments.Mappings;

            mappingsAppointment.Start          = "StartTime";
            mappingsAppointment.End            = "EndTime";
            mappingsAppointment.Subject        = "Subject";
            mappingsAppointment.AllDay         = "AllDay";
            mappingsAppointment.Description    = "Description";
            mappingsAppointment.Label          = "Label";
            mappingsAppointment.Location       = "Location";
            mappingsAppointment.RecurrenceInfo = "RecurrenceInfo";
            mappingsAppointment.ReminderInfo   = "ReminderInfo";
            mappingsAppointment.ResourceId     = "OwnerId";
            mappingsAppointment.Status         = "Status";
            mappingsAppointment.Type           = "EventType";

            this.schedulerStorage1.Resources.DataSource    = CustomResourceCollection;
            this.schedulerStorage1.Appointments.DataSource = CustomEventList;

            this.schedulerControl1.Start = DateTime.Now;
        }
        public CustomAppointmentForm(SchedulerControl control, Appointment apt, bool openRecurrenceForm)
            : base(control, apt, openRecurrenceForm)
        {
            InitializeComponent();

            chkAllDay.Visible = false;
        }
Beispiel #18
0
 static void CustomizeMesssageBoxCaptionEvent(SchedulerControl scheduler)
 {
     #region #CustomizeMesssageBoxCaptionEvent
     scheduler.CustomizeMessageBoxCaption += scheduler_CustomizeMessageBoxCaption;
     scheduler.ActiveView.LayoutChanged();
     #endregion #CustomizeMesssageBoxCaptionEvent
 }
        public static void AddAgendaView(SchedulerControl scheduler, DateNavigator dateNavigator, bool showResources)
        {
            CurrentScheduler = scheduler;
            navigator        = dateNavigator;
            if (!(scheduler.Parent is LayoutControl))
            {
                MessageBox.Show("SchedulerControl should be located within a LayoutControl to enable AgendaView functionality");
            }
            else
            {
                AgendaView = new AgendaViewControl(showResources, CurrentScheduler);
                CurrentScheduler.PopupMenuShowing += new DevExpress.XtraScheduler.PopupMenuShowingEventHandler(CurrentScheduler_PopupMenuShowing);
                LayoutControl     currentLayout       = scheduler.Parent as LayoutControl;
                LayoutControlItem schedulerLayoutItem = currentLayout.GetItemByControl(CurrentScheduler);
                //Create a layout item and add it to the root group.
                LayoutControlItem itemAgendaView = currentLayout.Root.AddItem(schedulerLayoutItem, DevExpress.XtraLayout.Utils.InsertType.Top) as LayoutControlItem;
                // Set the item's Control and caption.
                itemAgendaView.Name        = "layoutControlItemAgendaView";
                itemAgendaView.Control     = AgendaView;
                itemAgendaView.TextVisible = false;

                ChangeControlsVisibility(CurrentScheduler, true);
                if (navigator != null)
                {
                    ChangeControlsVisibility(navigator, true);
                }
                ChangeControlsVisibility(AgendaView, false);
            }
        }
Beispiel #20
0
 static void AppointmentFlyoutShowingEvent(SchedulerControl scheduler)
 {
     #region #AppointmentFlyoutShowing
     scheduler.AppointmentFlyoutShowing += scheduler_AppointmentFlyoutShowing;
     scheduler.ActiveView.LayoutChanged();
     #endregion #AppointmentFlyoutShowing
 }
Beispiel #21
0
        private void schedulerControl1_CustomDrawDayViewTimeRuler(object sender, DevExpress.XtraScheduler.CustomDrawObjectEventArgs e)
        {
            SchedulerControl  scheduler   = (SchedulerControl)sender;
            TimeSpan          now         = DateTime.Now.TimeOfDay;
            TimeRulerViewInfo viewInfo    = (TimeRulerViewInfo)e.ObjectInfo;
            Rectangle         rect        = viewInfo.ContentBounds;
            Rectangle         nowRect     = rect;
            DayViewInfo       dayViewInfo = scheduler.DayView.ViewInfo as DayViewInfo;

            if (dayViewInfo.VisibleRowsCount == 0)
            {
                return;
            }

            float offsetRatio = (now - scheduler.DayView.TopRowTime).Ticks / (float)TimeSpan.FromTicks(scheduler.DayView.TimeScale.Ticks * dayViewInfo.VisibleRowsCount).Ticks;

            if (offsetRatio < 0)
            {
                return;
            }

            nowRect.Height = 4;
            nowRect.Y     += (int)Math.Round(rect.Height * offsetRatio - (float)nowRect.Height / 2);

            e.DrawDefault();
            e.Cache.FillRectangle(Brushes.Red, nowRect);
            e.Handled = true;
        }
Beispiel #22
0
 static void InitAppointmentImagesEvent(SchedulerControl scheduler)
 {
     #region #InitAppointmentImagesEvent
     scheduler.InitAppointmentImages += scheduler_InitAppointmentImages;
     scheduler.ActiveView.LayoutChanged();
     #endregion #InitAppointmentImagesEvent
 }
Beispiel #23
0
 /// <summary>
 /// 获取布局数据
 /// </summary>
 /// <param name="dockManager">停靠管理器</param>
 /// <returns>布局数据</returns>
 public static byte[] GetLayoutData(this SchedulerControl control)
 {
     using (MemoryStream buffer = new MemoryStream()) {
         control.SaveLayoutToStream(buffer);
         return(buffer.ToArray());
     }
 }
Beispiel #24
0
 static void InitAppointmentDisplayTextEvent(SchedulerControl scheduler)
 {
     #region #InitAppointmentDisplayTextEvent
     scheduler.InitAppointmentDisplayText += scheduler_InitAppointmentDisplayText;
     scheduler.ActiveView.LayoutChanged();
     #endregion #InitAppointmentDisplayTextEvent
 }
Beispiel #25
0
 static void AppointmentChangingEvent(SchedulerControl scheduler)
 {
     #region #AppointmentChangingEvent
     scheduler.DataStorage.AppointmentChanging += Storage_AppointmentChanging;
     scheduler.ActiveView.LayoutChanged();
     #endregion #AppointmentChangingEvent
 }
Beispiel #26
0
        static void RecurrenceFromXmlAction(SchedulerControl scheduler)
        {
            #region #RecurrenceFromXml
            string head                = "<RecurrenceInfo ";
            string startText           = String.Format("Start = '{0}' ", DateTime.Today.AddHours(3));
            string endText             = String.Format("End = '{0}' ", DateTime.Today.AddHours(4));
            string weekDays            = String.Format("Weekdays='{0}' ", 10);
            string id                  = String.Format("Id = '{0}' ", Guid.NewGuid());
            string occurrenceCount     = String.Format("OccurrenceCount = '{0}' ", 15);
            string periodicity         = String.Format("Periodicity = '{0}' ", 2);
            string range               = String.Format("Range = '{0}' ", 1);
            string type                = String.Format("Type = '{0}' ", 1);
            string version             = String.Format("Version = '{0}' ", 1);
            string tail                = " />";
            string recurrenceXmlString = (head + startText + endText + weekDays +
                                          id + occurrenceCount + periodicity + range + type + version + tail).Replace("'", "\"");
            scheduler.DataStorage.Appointments.Clear();
            Appointment apt = scheduler.DataStorage.CreateAppointment(AppointmentType.Pattern);
            apt.Start   = DateTime.Today.AddHours(3);
            apt.End     = apt.Start.AddHours(2);
            apt.Subject = "Recurrence From XML";

            // Set appointment recurrence from XML.
            apt.RecurrenceInfo.FromXml(recurrenceXmlString);
            // Get recurrence info from XML.
            IRecurrenceInfo rec = DevExpress.XtraScheduler.Xml.RecurrenceInfoXmlPersistenceHelper.ObjectFromXml(recurrenceXmlString);

            apt.Description = recurrenceXmlString + Environment.NewLine + String.Format("Type: {0}", rec.Type);
            scheduler.DataStorage.Appointments.Add(apt);
            #endregion #RecurrenceFromXml
        }
Beispiel #27
0
 public Form2(SchedulerControl control, Appointment apt, bool openRecurrenceForm)
     : base(control, apt, openRecurrenceForm)
 {
     this.tbSubject.Enabled  = false;
     this.edtEndDate.Enabled = false;
     this.edtEndTime.Enabled = false;
 }
Beispiel #28
0
 public FolhaDaoManager()
 {
     if (this.server == null)
     {
         this.server = new SchedulerControl();
     }
 }
Beispiel #29
0
 static void StatusInfoAction(SchedulerControl scheduler)
 {
     #region #StatusInfo
     scheduler.InitAppointmentDisplayText += scheduler_InitAppointmentDisplayText_1;
     scheduler.ActiveView.LayoutChanged();
     #endregion #StatusInfo
 }
        public JarsDefaultAppointmentEditForm(SchedulerControl control, Appointment apt, bool openRecurrenceForm)
        {
            Guard.ArgumentNotNull(control, "control");
            Guard.ArgumentNotNull(control.DataStorage, "control.DataStorage");
            Guard.ArgumentNotNull(apt, "apt");

            this.openRecurrenceForm = openRecurrenceForm;
            this.controller         = CreateController(control, apt);
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();
            SetupPredefinedConstraints();

            LoadIcons();

            this.control = control;
            this.storage = control.DataStorage;

            this.riAppointmentResource.SchedulerControl = control;
            this.riAppointmentResource.Storage          = storage;
            this.riAppointmentStatus.Storage            = storage;

            this.riAppointmentLabel.Storage = storage;

            BindControllerToControls();

            LookAndFeel.ParentLookAndFeel = control.LookAndFeel;

            this.supressCancelCore = false;
        }
Beispiel #31
0
        static void CustomLabelsAndStatusesAction(SchedulerControl scheduler)
        {
            #region #CustomLabelsAndStatuses
            scheduler.Storage.Appointments.Clear();

            string[] IssueList            = { "Consultation", "Treatment", "X-Ray" };
            Color[]  IssueColorList       = { Color.Ivory, Color.Pink, Color.Plum };
            string[] PaymentStatuses      = { "Paid", "Unpaid" };
            Color[]  PaymentColorStatuses = { Color.Green, Color.Red };


            IAppointmentLabelStorage labelStorage = scheduler.Storage.Appointments.Labels;
            labelStorage.Clear();
            int count = IssueList.Length;
            for (int i = 0; i < count; i++)
            {
                IAppointmentLabel label = labelStorage.CreateNewLabel(i, IssueList[i]);
                label.SetColor(IssueColorList[i]);
                labelStorage.Add(label);
            }
            AppointmentStatusCollection statusColl = scheduler.Storage.Appointments.Statuses;
            statusColl.Clear();
            count = PaymentStatuses.Length;
            for (int i = 0; i < count; i++)
            {
                AppointmentStatus status = statusColl.CreateNewStatus(i, PaymentStatuses[i], PaymentStatuses[i]);
                status.SetBrush(new SolidBrush(PaymentColorStatuses[i]));
                statusColl.Add(status);
            }
            #endregion #CustomLabelsAndStatuses
        }
        public static void AddListView(SchedulerControl scheduler, DateNavigator dateNavigator, SearchControl searchControl)
        {
            CurrentScheduler      = scheduler;
            navigator             = dateNavigator;
            SearchControlInstance = searchControl;
            if (!(scheduler.Parent is LayoutControl))
            {
                MessageBox.Show("SchedulerControl should be located within a LayoutControl to enable ListView functionality");
            }
            else
            {
                ListView = new ListViewControl(CurrentScheduler);
                LayoutControl     currentLayout       = scheduler.Parent as LayoutControl;
                LayoutControlItem schedulerLayoutItem = currentLayout.GetItemByControl(CurrentScheduler);
                //Create a layout item and add it to the root group.
                LayoutControlItem itemAgendaView = currentLayout.Root.AddItem(schedulerLayoutItem, DevExpress.XtraLayout.Utils.InsertType.Top) as LayoutControlItem;
                // Set the item's Control and caption.
                itemAgendaView.Name        = "layoutControlItemAgendaView";
                itemAgendaView.Control     = ListView;
                itemAgendaView.TextVisible = false;

                ChangeControlsVisibility(CurrentScheduler, true);
                if (navigator != null)
                {
                    ChangeControlsVisibility(navigator, true);
                }
                ChangeControlsVisibility(ListView, false);
            }
        }
 public frmRandevuKaydi(SchedulerControl control, Appointment apt, 
     bool openRecurrenceForm)
 {
     this.openRecurrenceForm = openRecurrenceForm;
     this.controller = new MyAppointmentFormController(control, apt);
     this.apt = apt;
     this.control = control;
     InitializeComponent();
     UpdateForm();
 }
 public MyAppointmentForm(SchedulerControl control, DevExpress.XtraScheduler.Appointment apt,        bool openRecurrenceForm)
 {
     this.openRecurrenceForm = openRecurrenceForm;
     this.controller = new MyAppointmentFormController(control, apt);
     this.apt = apt;
     this.control = control;
     SuspendUpdate();
     InitializeComponent();
     ResumeUpdate();
     UpdateForm();
 }
 public void InitDateNavigator(SchedulerControl schedulerControl)
 {
     _schedulerControl = schedulerControl;
     dateNavigator1.SchedulerControl = schedulerControl;
 }
Beispiel #36
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="control">Scheduler control object</param>
 /// <param name="apt">Appointment object</param>
 public BVAppointmentFormController(SchedulerControl control, Appointment apt)
     : base(control, apt)
 {
 }
Beispiel #37
0
        public FrmAppointment(SchedulerControl control, Appointment apt, bool openRecurrenceForm, ScheduleType schedType, List<CTBookingSchedule> listMeetingSchedules)
        {
            this.openRecurrenceForm = openRecurrenceForm;
            this.controller = new BVAppointmentFormController(control, apt);
            this.appointmentForm = apt;
            this.control = control;
            this.BookingType = schedType;
            this.ListMeetingSchedules = listMeetingSchedules;
            SuspendUpdate();
            InitializeComponent();
            this.KeyPreview = true;
            btnRecurrence.Enabled = false;
            if (this.controller.IsNewAppointment) {
                btnDelete.Enabled = false;
            } else {
                bool isReadonly = false;
                if (this.control.Tag != null && this.control.Tag.ToString() == "ReadOnly")
                    isReadonly = true;
                //if in editing mode, do this for sales consultant only
                //don't allow delete or edit if webinar and seminar. allow for meeting only

                if (controller.ScheduleType == 2 || controller.ScheduleType == 1) {
                    DisableControls();
                } else if (controller.ScheduleType == 3) {
                    if (ListMeetingSchedules != null) {
                        schedule dbApt = (schedule)apt.GetSourceObject(control.Storage);
                        if (dbApt != null) {
                            var meeting = listMeetingSchedules.FirstOrDefault(x => x.id == dbApt.id);
                            if (meeting == null || isReadonly) {
                                DisableControls();
                            }
                        }
                    }
                }
            }
            ResumeUpdate();
            UpdateForm();
        }
Beispiel #38
0
 public static void FillData(SchedulerControl control)
 {
     control.Storage.EnableReminders = false;
     FillStorageData(control.Storage);
     control.Start = Date;
     //control.OptionsBehavior.ShowRemindersForm = false;
 }
Beispiel #39
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     DevExpress.XtraScheduler.Printing.DailyPrintStyle dailyPrintStyle1 = new DevExpress.XtraScheduler.Printing.DailyPrintStyle();
     DevExpress.XtraScheduler.Printing.WeeklyPrintStyle weeklyPrintStyle1 = new DevExpress.XtraScheduler.Printing.WeeklyPrintStyle();
     DevExpress.XtraScheduler.Printing.MonthlyPrintStyle monthlyPrintStyle1 = new DevExpress.XtraScheduler.Printing.MonthlyPrintStyle();
     DevExpress.XtraScheduler.Printing.TriFoldPrintStyle triFoldPrintStyle1 = new DevExpress.XtraScheduler.Printing.TriFoldPrintStyle();
     DevExpress.XtraScheduler.Printing.CalendarDetailsPrintStyle calendarDetailsPrintStyle1 = new DevExpress.XtraScheduler.Printing.CalendarDetailsPrintStyle();
     DevExpress.XtraScheduler.Printing.MemoPrintStyle memoPrintStyle1 = new DevExpress.XtraScheduler.Printing.MemoPrintStyle();
     DevExpress.XtraScheduler.TimeRuler timeRuler1 = new DevExpress.XtraScheduler.TimeRuler();
     DevExpress.XtraScheduler.TimeRuler timeRuler2 = new DevExpress.XtraScheduler.TimeRuler();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmCalendar));
     this.StartDatePickerTop = new System.Windows.Forms.DateTimePicker();
     this.schedulerStorage1 = new DevExpress.XtraScheduler.SchedulerStorage(this.components);
     this.pnlBody = new System.Windows.Forms.Panel();
     this.splitter1 = new System.Windows.Forms.Splitter();
     this.pnlCalendar = new System.Windows.Forms.Panel();
     this.schedulerControl1 = new DevExpress.XtraScheduler.SchedulerControl();
     this.pnlFilter = new System.Windows.Forms.Panel();
     this.chkHideWeekends = new DevExpress.XtraEditors.CheckEdit();
     this.lblMonth = new System.Windows.Forms.Label();
     this.lblYear = new System.Windows.Forms.Label();
     this.EndDatePickerTop = new System.Windows.Forms.DateTimePicker();
     this.btnClearFilters = new System.Windows.Forms.Button();
     this.cmbClass = new System.Windows.Forms.ComboBox();
     this.lblClass = new System.Windows.Forms.Label();
     this.cmbProgram = new System.Windows.Forms.ComboBox();
     this.lblProgram = new System.Windows.Forms.Label();
     this.cmbInstructor = new System.Windows.Forms.ComboBox();
     this.lblInstructor = new System.Windows.Forms.Label();
     this.cmbClient = new System.Windows.Forms.ComboBox();
     this.lblClient = new System.Windows.Forms.Label();
     this.pnlDateNavigator = new System.Windows.Forms.Panel();
     this.dateNavigator1 = new DevExpress.XtraScheduler.DateNavigator();
     this.imgContext = new System.Windows.Forms.ImageList(this.components);
     ((System.ComponentModel.ISupportInitialize)(this.schedulerStorage1)).BeginInit();
     this.pnlBody.SuspendLayout();
     this.pnlCalendar.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.schedulerControl1)).BeginInit();
     this.pnlFilter.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.chkHideWeekends.Properties)).BeginInit();
     this.pnlDateNavigator.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dateNavigator1)).BeginInit();
     this.SuspendLayout();
     //
     // StartDatePickerTop
     //
     this.StartDatePickerTop.Checked = false;
     this.StartDatePickerTop.CustomFormat = "MM/dd/yyyy";
     this.StartDatePickerTop.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.StartDatePickerTop.Location = new System.Drawing.Point(85, 7);
     this.StartDatePickerTop.Name = "StartDatePickerTop";
     this.StartDatePickerTop.Size = new System.Drawing.Size(93, 27);
     this.StartDatePickerTop.TabIndex = 15;
     this.StartDatePickerTop.ValueChanged += new System.EventHandler(this.datePickerTop_ValueChanged);
     //
     // schedulerStorage1
     //
     this.schedulerStorage1.Appointments.Mappings.Description = "Status";
     this.schedulerStorage1.Appointments.Mappings.End = "ENDDATETIME";
     this.schedulerStorage1.Appointments.Mappings.Label = "CEID";
     this.schedulerStorage1.Appointments.Mappings.Start = "STARTDATETIME";
     this.schedulerStorage1.Appointments.Mappings.Subject = "TASKDESC";
     //
     // pnlBody
     //
     this.pnlBody.Controls.Add(this.splitter1);
     this.pnlBody.Controls.Add(this.pnlCalendar);
     this.pnlBody.Controls.Add(this.pnlDateNavigator);
     this.pnlBody.Dock = System.Windows.Forms.DockStyle.Fill;
     this.pnlBody.Location = new System.Drawing.Point(0, 0);
     this.pnlBody.Name = "pnlBody";
     this.pnlBody.Size = new System.Drawing.Size(976, 622);
     this.pnlBody.TabIndex = 0;
     //
     // splitter1
     //
     this.splitter1.Dock = System.Windows.Forms.DockStyle.Right;
     this.splitter1.Location = new System.Drawing.Point(676, 0);
     this.splitter1.Name = "splitter1";
     this.splitter1.Size = new System.Drawing.Size(5, 622);
     this.splitter1.TabIndex = 6;
     this.splitter1.TabStop = false;
     //
     // pnlCalendar
     //
     this.pnlCalendar.Controls.Add(this.schedulerControl1);
     this.pnlCalendar.Controls.Add(this.pnlFilter);
     this.pnlCalendar.Dock = System.Windows.Forms.DockStyle.Fill;
     this.pnlCalendar.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.pnlCalendar.Location = new System.Drawing.Point(0, 0);
     this.pnlCalendar.Name = "pnlCalendar";
     this.pnlCalendar.Size = new System.Drawing.Size(681, 622);
     this.pnlCalendar.TabIndex = 2;
     //
     // schedulerControl1
     //
     this.schedulerControl1.Appearance.Appointment.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.schedulerControl1.Appearance.Appointment.Options.UseFont = true;
     this.schedulerControl1.Appearance.Selection.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.schedulerControl1.Appearance.Selection.Options.UseFont = true;
     this.schedulerControl1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.schedulerControl1.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.schedulerControl1.Location = new System.Drawing.Point(0, 60);
     this.schedulerControl1.Name = "schedulerControl1";
     dailyPrintStyle1.CalendarHeaderVisible = false;
     weeklyPrintStyle1.CalendarHeaderVisible = false;
     monthlyPrintStyle1.CalendarHeaderVisible = false;
     triFoldPrintStyle1.CalendarHeaderVisible = false;
     this.schedulerControl1.PrintStyles.Add(dailyPrintStyle1);
     this.schedulerControl1.PrintStyles.Add(weeklyPrintStyle1);
     this.schedulerControl1.PrintStyles.Add(monthlyPrintStyle1);
     this.schedulerControl1.PrintStyles.Add(triFoldPrintStyle1);
     this.schedulerControl1.PrintStyles.Add(calendarDetailsPrintStyle1);
     this.schedulerControl1.PrintStyles.Add(memoPrintStyle1);
     this.schedulerControl1.Size = new System.Drawing.Size(681, 562);
     this.schedulerControl1.Start = new System.DateTime(2006, 3, 6, 0, 0, 0, 0);
     this.schedulerControl1.Storage = this.schedulerStorage1;
     this.schedulerControl1.TabIndex = 1;
     this.schedulerControl1.Text = "schedulerControl1";
     this.schedulerControl1.Views.DayView.Appearance.AllDayArea.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.schedulerControl1.Views.DayView.Appearance.AllDayArea.Options.UseFont = true;
     this.schedulerControl1.Views.DayView.Appearance.AlternateHeaderCaption.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.schedulerControl1.Views.DayView.Appearance.AlternateHeaderCaption.Options.UseFont = true;
     this.schedulerControl1.Views.DayView.Appearance.Appointment.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.schedulerControl1.Views.DayView.Appearance.Appointment.Options.UseFont = true;
     this.schedulerControl1.Views.DayView.Appearance.HeaderCaption.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.schedulerControl1.Views.DayView.Appearance.HeaderCaption.Options.UseFont = true;
     this.schedulerControl1.Views.DayView.Appearance.Selection.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.schedulerControl1.Views.DayView.Appearance.Selection.Options.UseFont = true;
     this.schedulerControl1.Views.DayView.Appearance.TimeRuler.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.schedulerControl1.Views.DayView.Appearance.TimeRuler.Options.UseFont = true;
     this.schedulerControl1.Views.DayView.Appearance.TimeRulerNowArea.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.schedulerControl1.Views.DayView.Appearance.TimeRulerNowArea.Options.UseFont = true;
     this.schedulerControl1.Views.DayView.TimeRulers.Add(timeRuler1);
     this.schedulerControl1.Views.MonthView.Appearance.Appointment.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.schedulerControl1.Views.MonthView.Appearance.Appointment.Options.UseFont = true;
     this.schedulerControl1.Views.MonthView.AppointmentDisplayOptions.AppointmentAutoHeight = true;
     this.schedulerControl1.Views.MonthView.WeekCount = 4;
     this.schedulerControl1.Views.WeekView.Appearance.CellHeaderCaption.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.schedulerControl1.Views.WeekView.Appearance.CellHeaderCaption.Options.UseFont = true;
     this.schedulerControl1.Views.WeekView.Appearance.CellHeaderCaptionLine.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.schedulerControl1.Views.WeekView.Appearance.CellHeaderCaptionLine.Options.UseFont = true;
     this.schedulerControl1.Views.WeekView.Appearance.HeaderCaption.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.schedulerControl1.Views.WeekView.Appearance.HeaderCaption.Options.UseFont = true;
     this.schedulerControl1.Views.WeekView.Appearance.HeaderCaptionLine.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.schedulerControl1.Views.WeekView.Appearance.HeaderCaptionLine.Options.UseFont = true;
     this.schedulerControl1.Views.WeekView.Appearance.Selection.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.schedulerControl1.Views.WeekView.Appearance.Selection.Options.UseFont = true;
     this.schedulerControl1.Views.WorkWeekView.ShowFullWeek = true;
     this.schedulerControl1.Views.WorkWeekView.TimeRulers.Add(timeRuler2);
     this.schedulerControl1.Click += new System.EventHandler(this.schedulerControl1_Click);
     this.schedulerControl1.CustomDrawAppointment += new DevExpress.XtraScheduler.CustomDrawObjectEventHandler(this.schedulerControl1_CustomDrawAppointment);
     this.schedulerControl1.PreparePopupMenu += new DevExpress.XtraScheduler.PreparePopupMenuEventHandler(this.OnPreparePopupMenu);
     this.schedulerControl1.EditAppointmentFormShowing += new DevExpress.XtraScheduler.AppointmentFormEventHandler(this.schedulerControl_EditAppointmentFormShowing);
     this.schedulerControl1.AppointmentViewInfoCustomizing += new DevExpress.XtraScheduler.AppointmentViewInfoCustomizingEventHandler(this.schedulerControl1_AppointmentViewInfoCustomizing);
     //
     // pnlFilter
     //
     this.pnlFilter.BackColor = System.Drawing.SystemColors.GrayText;
     this.pnlFilter.Controls.Add(this.chkHideWeekends);
     this.pnlFilter.Controls.Add(this.lblMonth);
     this.pnlFilter.Controls.Add(this.lblYear);
     this.pnlFilter.Controls.Add(this.EndDatePickerTop);
     this.pnlFilter.Controls.Add(this.StartDatePickerTop);
     this.pnlFilter.Controls.Add(this.btnClearFilters);
     this.pnlFilter.Controls.Add(this.cmbClass);
     this.pnlFilter.Controls.Add(this.lblClass);
     this.pnlFilter.Controls.Add(this.cmbProgram);
     this.pnlFilter.Controls.Add(this.lblProgram);
     this.pnlFilter.Controls.Add(this.cmbInstructor);
     this.pnlFilter.Controls.Add(this.lblInstructor);
     this.pnlFilter.Controls.Add(this.cmbClient);
     this.pnlFilter.Controls.Add(this.lblClient);
     this.pnlFilter.Dock = System.Windows.Forms.DockStyle.Top;
     this.pnlFilter.Location = new System.Drawing.Point(0, 0);
     this.pnlFilter.Name = "pnlFilter";
     this.pnlFilter.Size = new System.Drawing.Size(681, 60);
     this.pnlFilter.TabIndex = 3;
     //
     // chkHideWeekends
     //
     this.chkHideWeekends.Location = new System.Drawing.Point(676, 19);
     this.chkHideWeekends.Name = "chkHideWeekends";
     this.chkHideWeekends.Properties.Caption = "Hide Weekends";
     this.chkHideWeekends.Size = new System.Drawing.Size(161, 24);
     this.chkHideWeekends.TabIndex = 20;
     this.chkHideWeekends.CheckedChanged += new System.EventHandler(this.chkHideWeekends_CheckedChanged);
     //
     // lblMonth
     //
     this.lblMonth.AutoSize = true;
     this.lblMonth.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblMonth.Location = new System.Drawing.Point(13, 36);
     this.lblMonth.Name = "lblMonth";
     this.lblMonth.Size = new System.Drawing.Size(87, 21);
     this.lblMonth.TabIndex = 19;
     this.lblMonth.Text = "End Date";
     //
     // lblYear
     //
     this.lblYear.AutoSize = true;
     this.lblYear.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblYear.Location = new System.Drawing.Point(13, 11);
     this.lblYear.Name = "lblYear";
     this.lblYear.Size = new System.Drawing.Size(97, 21);
     this.lblYear.TabIndex = 18;
     this.lblYear.Text = "Start Date";
     //
     // EndDatePickerTop
     //
     this.EndDatePickerTop.Checked = false;
     this.EndDatePickerTop.CustomFormat = "MM/dd/yyyy";
     this.EndDatePickerTop.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.EndDatePickerTop.Location = new System.Drawing.Point(85, 33);
     this.EndDatePickerTop.Name = "EndDatePickerTop";
     this.EndDatePickerTop.Size = new System.Drawing.Size(93, 27);
     this.EndDatePickerTop.TabIndex = 17;
     this.EndDatePickerTop.ValueChanged += new System.EventHandler(this.datePickerTop_ValueChanged);
     //
     // btnClearFilters
     //
     this.btnClearFilters.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btnClearFilters.Location = new System.Drawing.Point(16, 10);
     this.btnClearFilters.Name = "btnClearFilters";
     this.btnClearFilters.Size = new System.Drawing.Size(166, 33);
     this.btnClearFilters.TabIndex = 13;
     this.btnClearFilters.Text = "Clear All Filters";
     this.btnClearFilters.Visible = false;
     this.btnClearFilters.Click += new System.EventHandler(this.btnClearFilters_Click);
     //
     // cmbClass
     //
     this.cmbClass.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cmbClass.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.cmbClass.ItemHeight = 21;
     this.cmbClass.Items.AddRange(new object[] {
     "January",
     "February",
     "March",
     "April",
     "May",
     "June",
     "July",
     "August",
     "September",
     "October",
     "November",
     "December"});
     this.cmbClass.Location = new System.Drawing.Point(502, 32);
     this.cmbClass.Name = "cmbClass";
     this.cmbClass.Size = new System.Drawing.Size(137, 29);
     this.cmbClass.TabIndex = 12;
     this.cmbClass.SelectedIndexChanged += new System.EventHandler(this.cmbClass_SelectedIndexChanged);
     //
     // lblClass
     //
     this.lblClass.AutoSize = true;
     this.lblClass.BackColor = System.Drawing.SystemColors.GrayText;
     this.lblClass.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblClass.Location = new System.Drawing.Point(446, 36);
     this.lblClass.Name = "lblClass";
     this.lblClass.Size = new System.Drawing.Size(54, 21);
     this.lblClass.TabIndex = 11;
     this.lblClass.Text = "Class";
     //
     // cmbProgram
     //
     this.cmbProgram.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cmbProgram.Items.AddRange(new object[] {
     "January",
     "February",
     "March",
     "April",
     "May",
     "June",
     "July",
     "August",
     "September",
     "October",
     "November",
     "December"});
     this.cmbProgram.Location = new System.Drawing.Point(502, 6);
     this.cmbProgram.Name = "cmbProgram";
     this.cmbProgram.Size = new System.Drawing.Size(137, 29);
     this.cmbProgram.TabIndex = 10;
     this.cmbProgram.SelectedIndexChanged += new System.EventHandler(this.cmbProgram_SelectedIndexChanged);
     //
     // lblProgram
     //
     this.lblProgram.AutoSize = true;
     this.lblProgram.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblProgram.Location = new System.Drawing.Point(446, 11);
     this.lblProgram.Name = "lblProgram";
     this.lblProgram.Size = new System.Drawing.Size(83, 21);
     this.lblProgram.TabIndex = 9;
     this.lblProgram.Text = "Program";
     //
     // cmbInstructor
     //
     this.cmbInstructor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cmbInstructor.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.cmbInstructor.ItemHeight = 21;
     this.cmbInstructor.Items.AddRange(new object[] {
     "January",
     "February",
     "March",
     "April",
     "May",
     "June",
     "July",
     "August",
     "September",
     "October",
     "November",
     "December"});
     this.cmbInstructor.Location = new System.Drawing.Point(277, 32);
     this.cmbInstructor.Name = "cmbInstructor";
     this.cmbInstructor.Size = new System.Drawing.Size(137, 29);
     this.cmbInstructor.TabIndex = 8;
     this.cmbInstructor.SelectedIndexChanged += new System.EventHandler(this.cmbInstructor_SelectedIndexChanged);
     //
     // lblInstructor
     //
     this.lblInstructor.AutoSize = true;
     this.lblInstructor.BackColor = System.Drawing.SystemColors.GrayText;
     this.lblInstructor.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblInstructor.Location = new System.Drawing.Point(212, 36);
     this.lblInstructor.Name = "lblInstructor";
     this.lblInstructor.Size = new System.Drawing.Size(97, 21);
     this.lblInstructor.TabIndex = 7;
     this.lblInstructor.Text = "Instructor";
     //
     // cmbClient
     //
     this.cmbClient.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cmbClient.Items.AddRange(new object[] {
     "January",
     "February",
     "March",
     "April",
     "May",
     "June",
     "July",
     "August",
     "September",
     "October",
     "November",
     "December"});
     this.cmbClient.Location = new System.Drawing.Point(277, 6);
     this.cmbClient.Name = "cmbClient";
     this.cmbClient.Size = new System.Drawing.Size(137, 29);
     this.cmbClient.TabIndex = 6;
     this.cmbClient.SelectedIndexChanged += new System.EventHandler(this.cmbClient_SelectedIndexChanged);
     //
     // lblClient
     //
     this.lblClient.AutoSize = true;
     this.lblClient.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblClient.Location = new System.Drawing.Point(212, 11);
     this.lblClient.Name = "lblClient";
     this.lblClient.Size = new System.Drawing.Size(59, 21);
     this.lblClient.TabIndex = 5;
     this.lblClient.Text = "Client";
     //
     // pnlDateNavigator
     //
     this.pnlDateNavigator.Controls.Add(this.dateNavigator1);
     this.pnlDateNavigator.Dock = System.Windows.Forms.DockStyle.Right;
     this.pnlDateNavigator.Location = new System.Drawing.Point(681, 0);
     this.pnlDateNavigator.Name = "pnlDateNavigator";
     this.pnlDateNavigator.Size = new System.Drawing.Size(295, 622);
     this.pnlDateNavigator.TabIndex = 4;
     //
     // dateNavigator1
     //
     this.dateNavigator1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.dateNavigator1.HotDate = null;
     this.dateNavigator1.Location = new System.Drawing.Point(0, 0);
     this.dateNavigator1.Name = "dateNavigator1";
     this.dateNavigator1.SchedulerControl = this.schedulerControl1;
     this.dateNavigator1.Size = new System.Drawing.Size(295, 622);
     this.dateNavigator1.TabIndex = 0;
     //
     // imgContext
     //
     this.imgContext.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imgContext.ImageStream")));
     this.imgContext.TransparentColor = System.Drawing.Color.Fuchsia;
     this.imgContext.Images.SetKeyName(0, "");
     this.imgContext.Images.SetKeyName(1, "");
     //
     // frmCalendar
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(8, 20);
     this.ClientSize = new System.Drawing.Size(976, 622);
     this.Controls.Add(this.pnlBody);
     this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Name = "frmCalendar";
     this.Text = "Scheduler Calendar";
     this.Load += new System.EventHandler(this.frmCalendar_Load);
     ((System.ComponentModel.ISupportInitialize)(this.schedulerStorage1)).EndInit();
     this.pnlBody.ResumeLayout(false);
     this.pnlCalendar.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.schedulerControl1)).EndInit();
     this.pnlFilter.ResumeLayout(false);
     this.pnlFilter.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.chkHideWeekends.Properties)).EndInit();
     this.pnlDateNavigator.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dateNavigator1)).EndInit();
     this.ResumeLayout(false);
 }
        public AppointmentFormOutlook2007Style(DevExpress.XtraScheduler.SchedulerControl control, DevExpress.XtraScheduler.Appointment apt, bool openRecurrenceForm)
            : base()
        {
            if (control == null)
                Exceptions.ThrowArgumentException("control", control);
            if (control.Storage == null)
                Exceptions.ThrowArgumentException("control.Storage", control.Storage);
            if (apt == null)
                Exceptions.ThrowArgumentException("apt", apt);

            this.openRecurrenceForm = openRecurrenceForm;
            this.controller = CreateController(control, apt);
            this.sourceAppointment = apt;
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            SchedulerStorage storage = (SchedulerStorage)control.Storage;
            repItemAppointmentStatus.Storage = storage;
            repItemAppointmentLabel.Storage = storage;

            barAndDockingController.LookAndFeel.ParentLookAndFeel = LookAndFeel;

            LoadIcons();
            LoadImages();

            this.control = control;
            this.storage = control.Storage;
        }
Beispiel #41
0
 public void InitDateNavigator(SchedulerControl schedulerControl) {
     this.schedulerControl = schedulerControl;
     this.dateNavigator1.SchedulerControl = schedulerControl;
 }
Beispiel #42
0
        public MyCustomEditForm(SchedulerControl control, DevExpress.XtraScheduler.Appointment apt, bool openRecurrenceForm, int nDepartmentID,int nEmployee)
        {
            this.openRecurrenceForm = openRecurrenceForm;
            this.controller = new MyAppointmentFormController(control, apt);
            this.apt = apt;
            this.control = control;
            nDepartment = nDepartmentID;
            nEmp = nEmployee;
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();
            //this.tblDeliveryScheduleTableAdapter.Fill(this.aCMSDataSet.TblDeliverySchedule, nDepartment);
            UpdateForm();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
        }
Beispiel #43
0
 public void InitBarController(SchedulerControl scheduler)
 {
     this.barController.Control = scheduler;
 }
Beispiel #44
0
        public MyCustomEditForm(SchedulerControl control, DevExpress.XtraScheduler.Appointment apt, bool openRecurrenceForm)
        {
            this.openRecurrenceForm = openRecurrenceForm;
            this.controller = new MyAppointmentFormController(control, apt);
            this.apt = apt;
            this.control = control;
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();
            UpdateForm();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
        }
Beispiel #45
0
 public MyAppointmentFormController(SchedulerControl control, DevExpress.XtraScheduler.Appointment apt)
     : base(control, apt)
 {
 }
Beispiel #46
0
        public FrmAppointment(SchedulerControl control, Appointment apt, bool openRecurrenceForm, ScheduleType schedType, List<CTBookingSchedule> listMeetingSchedules)
        {
            this.KeyPreview = true;
            this.openRecurrenceForm = openRecurrenceForm;
            this.controller = new BVAppointmentFormController(control, apt);
            this.appointmentForm = apt;
            this.control = control;
            this.BookingType = schedType;
            SuspendUpdate();
            InitializeComponent();

            btnRecurrence.Enabled = false;
            if (this.controller.IsNewAppointment) {
                btnDelete.Enabled = false;
            } else {
                //if in editing mode, do this for sales consultant only
                //don't allow delete or edit if webinar and seminar. allow for meeting only
                /*
                if (controller.ScheduleType == 2 || controller.ScheduleType == 1) {
                    DisableControls();
                } else if (controller.ScheduleType == 3) {
                    if (ListMeetingSchedules != null) {
                        schedule dbApt = (schedule)apt.GetSourceObject(control.Storage);
                        if (dbApt != null) {
                            var meeting = listMeetingSchedules.FirstOrDefault(x => x.id == dbApt.id);
                            if (meeting == null) {
                                DisableControls();
                            }
                        }
                    }
                }*/

                //DAN: New implementation base on johan's comment on ticket: https://brightvision.jira.com/browse/PLATFORM-2482
                if (ListMeetingSchedules != null)
                {
                    schedule dbApt = (schedule)apt.GetSourceObject(control.Storage);
                    if (dbApt != null)
                    {
                        var meeting = listMeetingSchedules.FirstOrDefault(x => x.id == dbApt.id);
                        if (meeting == null)
                        {
                            DisableControls();
                        }
                    }
                }

            }
            ResumeUpdate();
            UpdateForm();
        }