Esempio n. 1
0
 public void FillResources(SchedulerStorage storage, int count)
 {
     ResourceCollection resources = storage.Resources.Items;
     storage.BeginUpdate();
     try
     {
         int cnt = Math.Min(count,  Usuarios.Length);
         for (int i = 1; i <= cnt; i++)
             resources.Add(new Resource(i, Usuarios[i - 1]));
     }
     finally
     {
         storage.EndUpdate();
     }
 }
Esempio n. 2
0
        public void InitResourcesTree(SchedulerStorage storage) {
            if (treeResources.Nodes.Count > 0)
                return;

            treeResources.BeginUnboundLoad();
            treeResources.AppendNode(new object[] { Properties.Resources.Work }, -1, CheckState.Checked);
            treeResources.AppendNode(new object[] { Properties.Resources.Personal }, -1, CheckState.Checked);

            foreach (Resource item in storage.Resources.Items) {
                int id = (int)item.Id;
                TreeListNode node = treeResources.AppendNode(new object[] { item.Caption }, CalculateResourceCategory(id), id);
                node.CheckState = CheckState.Checked;
            }
            treeResources.EndUnboundLoad();
            treeResources.ExpandAll();
        }
Esempio n. 3
0
 public static void GenerateEvents(SchedulerStorage storage, int count)
 {
     for (int i = 0; i < count; i++)
     {
         Resource resource   = storage.Resources[i];
         string   subjPrefix = resource.Caption + "'s ";
         if (i % 2 == 0)
         {
             storage.Appointments.Add(CreateEvent(storage, subjPrefix + "meeting", resource.Id, 2, 5));
             storage.Appointments.Add(CreateEvent(storage, subjPrefix + "travel", resource.Id, 3, 6));
             storage.Appointments.Add(CreateEvent(storage, subjPrefix + "phone call", resource.Id, 0, 10));
         }
         else
         {
             storage.Appointments.Add(CreateRecurrentEvent(storage, subjPrefix + "meeting", resource.Id, 2, 5));
         }
     }
 }
Esempio n. 4
0
        private static Appointment CreateRecurrentEvent(SchedulerStorage storage, string subject, object resourceId, int status, int label)
        {
            Appointment apt = storage.CreateAppointment(AppointmentType.Pattern);

            apt.Subject    = subject;
            apt.ResourceId = resourceId;
            apt.Start      = DateTime.Today.AddHours(9).AddMinutes(30);
            apt.End        = apt.Start.AddHours(2);
            apt.StatusId   = status;
            apt.LabelId    = label;

            apt.RecurrenceInfo.Type        = RecurrenceType.Daily;
            apt.RecurrenceInfo.Start       = apt.Start;
            apt.RecurrenceInfo.Periodicity = 5;
            apt.RecurrenceInfo.Range       = RecurrenceRange.EndByDate;
            apt.RecurrenceInfo.End         = apt.RecurrenceInfo.Start.AddMonths(1);
            return(apt);
        }
Esempio n. 5
0
        public static void FillResources(SchedulerStorage storage, int count)
        {
            ResourceStorage resources = storage.ResourceStorage;

            storage.BeginUpdate();
            try {
                int cnt = Math.Min(count, Users.Length);
                for (int i = 1; i <= cnt; i++)
                {
                    Resource res = resources.CreateResource(Usernames[i - 1]);
                    res.Caption = Users[i - 1];
                    resources.Add(res);
                }
            }
            finally {
                storage.EndUpdate();
            }
        }
Esempio n. 6
0
        void LoadResources()
        {
            SchedulerStorage   storage   = this.schedulerStorage;
            ResourceCollection resources = storage.Resources.Items;

            storage.BeginUpdate();
            try
            {
                int cnt = Math.Min(int.MaxValue, Users.Length);
                for (int i = 1; i <= cnt; i++)
                {
                    resources.Add(new Resource(i, Users[i - 1]));
                }
            }
            finally
            {
                storage.EndUpdate();
            }
        }
        public MainWindow()
        {
            InitializeComponent();

            SchedulerStorage schedulerStorage = schedulerControl1.Storage;
            Appointment      apt      = schedulerStorage.CreateAppointment(AppointmentType.Normal);
            DateTime         baseTime = DateTime.Today;

            apt.Start       = baseTime.AddHours(1);
            apt.End         = baseTime.AddHours(3.5);
            apt.Subject     = "Appointment Subject";
            apt.Location    = "Appointment Location";
            apt.Description = "Appointment description";

            schedulerStorage.AppointmentStorage.Add(apt);

            schedulerControl1.Start = apt.Start.Date;
            schedulerControl1.ActiveView.SelectAppointment(apt);
        }
        void scheduler_QueryWorkTime(object sender, QueryWorkTimeEventArgs e)
        {
            if (chkCustomWorkTime != null)
            {
                if (!(bool)chkCustomWorkTime.IsChecked)
                {
                    return;
                }
            }

            if (scheduler != null)
            {
                SchedulerStorage schedulerStorage = scheduler.Storage;
                if (schedulerStorage.ResourceStorage == null)
                {
                    return;
                }

                int resourceIndex = schedulerStorage.ResourceStorage.Items.IndexOf(e.Resource);
                if (resourceIndex >= 0)
                {
                    if (resourceIndex == 0)
                    {
                        if ((e.Interval.Start.Day % 2) == 0)
                        {
                            e.WorkTime = workTimes[resourceIndex % workTimes.Length];
                        }
                        else
                        {
                            e.WorkTimes.Add(new TimeOfDayInterval(TimeSpan.FromHours(8), TimeSpan.FromHours(13)));
                            e.WorkTimes.Add(new TimeOfDayInterval(TimeSpan.FromHours(14), TimeSpan.FromHours(18)));
                        }
                    }
                    else
                    {
                        if (scheduler.WorkDays.IsWorkDay(e.Interval.Start.Date))
                        {
                            e.WorkTime = workTimes[resourceIndex % workTimes.Length];
                        }
                    }
                }
            }
        }
Esempio n. 9
0
        void PrepareMeetings()
        {
            SchedulerStorage schedulerStorage = scheduler.Storage;
            int resourceCount = schedulerStorage.ResourceStorage.Count;

            System.Diagnostics.Debug.Assert(resourceCount == 8);

            schedulerStorage.BeginUpdate();
            try {
                DateTime today = DateTime.Today;

                Appointment apt = CreateMeeting("Morning meeting", today + TimeSpan.FromHours(9), new int[] { 1, 3, 5 });
                apt.StatusKey = 2;
                apt.LabelKey  = 2;
                schedulerStorage.AppointmentStorage.Add(apt);

                int dayShift = DemoUtils.RandomInstance.Next(3);
                apt           = CreateMeeting("Product delivery planning", today + TimeSpan.FromDays(dayShift) + TimeSpan.FromHours(12), new int[] { 2, 4, 5 });
                apt.StatusKey = 2;
                apt.LabelKey  = 5;
                schedulerStorage.AppointmentStorage.Add(apt);

                dayShift      = DemoUtils.RandomInstance.Next(3);
                apt           = CreateMeeting("New product concept presentation", today + TimeSpan.FromDays(dayShift) + TimeSpan.FromHours(14), new int[] { 2, 3, 6 });
                apt.StatusKey = 1;
                apt.LabelKey  = 6;
                schedulerStorage.AppointmentStorage.Add(apt);

                dayShift      = DemoUtils.RandomInstance.Next(3);
                apt           = CreateMeeting("Discussion", today + TimeSpan.FromDays(dayShift) + TimeSpan.FromHours(16), new int[] { 1, 2, 3, 5 });
                apt.StatusKey = 2;
                apt.LabelKey  = 5;
                schedulerStorage.AppointmentStorage.Add(apt);

                dayShift      = DemoUtils.RandomInstance.Next(3);
                apt           = CreateMeeting("New employee interview", today + TimeSpan.FromDays(dayShift) + TimeSpan.FromHours(11), new int[] { 2, 3 });
                apt.StatusKey = 1;
                apt.LabelKey  = 4;
                schedulerStorage.AppointmentStorage.Add(apt);
            } finally {
                schedulerStorage.EndUpdate();
            }
        }
Esempio n. 10
0
        public static void LoadTo(SchedulerControl scheduler)
        {
            SchedulerStorage storage = scheduler.Storage;

            InitCustomAppointmentStatuses(storage);

            storage.AppointmentStorage.Mappings.AllDay         = "AllDay";
            storage.AppointmentStorage.Mappings.Description    = "Description";
            storage.AppointmentStorage.Mappings.End            = "EndTime";
            storage.AppointmentStorage.Mappings.Label          = "Label";
            storage.AppointmentStorage.Mappings.Location       = "Location";
            storage.AppointmentStorage.Mappings.RecurrenceInfo = "RecurrenceInfo";
            storage.AppointmentStorage.Mappings.ReminderInfo   = "ReminderInfo";
            storage.AppointmentStorage.Mappings.Start          = "StartTime";
            storage.AppointmentStorage.Mappings.Status         = "Status";
            storage.AppointmentStorage.Mappings.Subject        = "Subject";
            storage.AppointmentStorage.Mappings.Type           = "Type";

            scheduler.Storage.AppointmentStorage.DataSource = LoadFromXml <EventItem>("Events.xml");
        }
        public static void InitAppointments(SchedulerStorage storage)
        {
            AppointmentMappingInfo mappings = storage.Appointments.Mappings;

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

            GenerateEvents(CustomEventList, storage);
            storage.Appointments.DataSource = CustomEventList;
        }
Esempio n. 12
0
        public void InitResourcesTree(SchedulerStorage storage)
        {
            if (treeResources.Nodes.Count > 0)
            {
                return;
            }

            treeResources.BeginUnboundLoad();
            treeResources.AppendNode(new object[] { Properties.Resources.Work }, -1, CheckState.Checked);
            treeResources.AppendNode(new object[] { Properties.Resources.Personal }, -1, CheckState.Checked);

            foreach (Resource item in storage.Resources.Items)
            {
                int          id   = (int)item.Id;
                TreeListNode node = treeResources.AppendNode(new object[] { item.Caption }, CalculateResourceCategory(id), id);
                node.CheckState = CheckState.Checked;
            }
            treeResources.EndUnboundLoad();
            treeResources.ExpandAll();
        }
Esempio n. 13
0
        Appointment CreateMeeting(string subject, DateTime date, int[] participants)
        {
            SchedulerStorage schedulerStorage = scheduler.Storage;
            Appointment      apt = schedulerStorage.CreateAppointment(AppointmentType.Normal);

            apt.Start    = date;
            apt.Duration = TimeSpan.FromHours(1);
            apt.Subject  = subject;

            string description = AttendeeDescription;
            int    count       = participants.Length;

            for (int i = 0; i < count; i++)
            {
                Resource resource = schedulerStorage.ResourceStorage[participants[i]];
                description += String.Format("{0}\r\n", resource.Caption);
                apt.ResourceIds.Add(resource.Id);
            }
            apt.Description = description;
            return(apt);
        }
        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;
            edtResource.SchedulerControl     = control;
            edtResource.Storage           = storage;
            edtResources.SchedulerControl = control;

            barAndDockingController.LookAndFeel.ParentLookAndFeel = LookAndFeel;
            this.spellChecker.LookAndFeel.ParentLookAndFeel       = this.LookAndFeel;
            LoadIcons();

            this.control = control;
            this.storage = control.Storage;
        }
Esempio n. 15
0
        public static void scheduler_CustomDrawNavigationButton(object sender, DevExpress.XtraScheduler.CustomDrawObjectEventArgs e)
        {
            NavigationButtonNext navButton = e.ObjectInfo as NavigationButtonNext;
            SchedulerControl     scheduler = sender as SchedulerControl;
            SchedulerStorage     storage   = scheduler.Storage as SchedulerStorage;

            // Do not count by resources.
            if (scheduler.GroupType != SchedulerGroupType.None)
            {
                return;
            }

            if (navButton != null && scheduler != null && storage != null)
            {
                // Count appointments within the interval used by the Next navigation button.
                AppointmentBaseCollection apts = scheduler.Storage.Appointments.Items;
                TimeSpan aptSearchInterval     = scheduler.OptionsView.NavigationButtons.AppointmentSearchInterval;
                DateTime lastVisibleTime       = scheduler.ActiveView.GetVisibleIntervals().Last().End;
                int      aptCount = apts.Where(a => (a.Start > lastVisibleTime) && (a.Start < lastVisibleTime.Add(aptSearchInterval))).Count();
                navButton.DisplayTextItem.Text = String.Format("Next {0} appointments", aptCount);
            }
        }
Esempio n. 16
0
        public static object GenerateAgendaAppointmentCollection(SchedulerStorage storage)
        {
            AppointmentBaseCollection       sourceAppointments = storage.GetAppointments(SelectedInterval);
            BindingList <AgendaAppointment> agendaAppointments = new BindingList <AgendaAppointment>();

            foreach (Appointment appointment in sourceAppointments)
            {
                TimeInterval currentDayInterval = new TimeInterval(appointment.Start.Date, appointment.Start.Date.AddDays(1));
                string       startTime          = "";
                string       endTime            = "";
                if (currentDayInterval.Contains(appointment.End))
                {
                    startTime = currentDayInterval.Start == appointment.Start ? "" : appointment.Start.TimeOfDay.ToString(@"hh\:mm");
                    endTime   = currentDayInterval.End == appointment.End ? "" : appointment.End.TimeOfDay.ToString(@"hh\:mm");
                    agendaAppointments.Add(CreateAgendaAppointment(storage, appointment, currentDayInterval.Start, startTime, endTime));
                }
                else
                {
                    startTime = currentDayInterval.Start == appointment.Start ? "" : appointment.Start.TimeOfDay.ToString(@"hh\:mm");
                    agendaAppointments.Add(CreateAgendaAppointment(storage, appointment, currentDayInterval.Start, startTime, ""));
                    while (true)
                    {
                        currentDayInterval = new TimeInterval(currentDayInterval.End, currentDayInterval.End.AddDays(1));
                        if (currentDayInterval.Contains(appointment.End))
                        {
                            endTime = currentDayInterval.End == appointment.End ? "" : appointment.End.TimeOfDay.ToString(@"hh\:mm");
                            agendaAppointments.Add(CreateAgendaAppointment(storage, appointment, currentDayInterval.Start, "", endTime));
                            break;
                        }
                        else
                        {
                            agendaAppointments.Add(CreateAgendaAppointment(storage, appointment, currentDayInterval.Start, "", ""));
                        }
                    }
                }
            }
            return(agendaAppointments);
        }
Esempio n. 17
0
        public AppointmentRemovedAction(SchedulerStorage storage, Appointment appointment)
        {
            _storage     = storage;
            _appointment = appointment;
            if (appointment.RecurrenceInfo != null)
            {
                _recurrenceInfo                 = appointment.RecurrenceInfo;
                _recurrenceInfo.AllDay          = _appointment.RecurrenceInfo.AllDay;
                _recurrenceInfo.DayNumber       = _appointment.RecurrenceInfo.DayNumber;
                _recurrenceInfo.Start           = _appointment.RecurrenceInfo.Start;
                _recurrenceInfo.Duration        = _appointment.RecurrenceInfo.Duration;
                _recurrenceInfo.End             = _appointment.RecurrenceInfo.End;
                _recurrenceInfo.Month           = _appointment.RecurrenceInfo.Month;
                _recurrenceInfo.OccurrenceCount = _appointment.RecurrenceInfo.OccurrenceCount;
                _recurrenceInfo.Periodicity     = _appointment.RecurrenceInfo.Periodicity;
                _recurrenceInfo.Range           = (RecurrenceRange)_appointment.RecurrenceInfo.Range;

                _recurrenceInfo.Type        = (RecurrenceType)_appointment.RecurrenceInfo.Type;
                _recurrenceInfo.WeekDays    = (WeekDays)_appointment.RecurrenceInfo.WeekDays;
                _recurrenceInfo.WeekOfMonth = (WeekOfMonth)_appointment.RecurrenceInfo.WeekOfMonth;
            }
            Name = "Remove appointment-" + appointment.Subject;
        }
Esempio n. 18
0
        private void CreateAppointentsForResource(SchedulerStorage storage, Resource resource)
        {
            Random rnd         = DemoUtils.RandomInstance;
            int    statusCount = storage.AppointmentStorage.Statuses.Count;

            string[] appointmentKind = { "appointment", "personal time", "meeting", "travel" };
            int[]    labelKind       = { 1, 3, 5, 6 };

            string             subjPrefix   = resource.Caption + "'s ";
            AppointmentStorage appointments = storage.AppointmentStorage;

            for (int i = 0; i < 50; i++)
            {
                int statusId  = rnd.Next(0, statusCount);
                int aptKindId = rnd.Next(0, appointmentKind.Length);
                int labelId   = labelKind[aptKindId];

                string   subject   = subjPrefix + appointmentKind[aptKindId];
                int      dateRange = rnd.Next(0, 20);
                DateTime start     = DateTime.Today.AddDays(dateRange - 2);

                appointments.Add(CreateAppointment(start, subject, resource.Id, statusId, labelId));
            }
        }
Esempio n. 19
0
 public static object GenerateResourcesCollection(SchedulerStorage storage)
 {
     return(storage.Resources.Items);
 }
Esempio n. 20
0
 public RecurrencePatternParser(SchedulerStorage storage)
 {
     this.storage = storage;
     this.rule    = null;
 }
Esempio n. 21
0
 public NormalEventCreator(SchedulerStorage storage)
 {
     this.storage = storage;
 }
Esempio n. 22
0
 public RemindersForm(XafApplication xafApplication, SchedulerStorage storage)
     : base(storage)
 {
     _xafApplication = xafApplication;
 }
Esempio n. 23
0
 private void InitSchedulerStorage(SchedulerStorage storage, object appointmentsDataSource)
 {
     storage.Appointments.Labels.Clear();
     storage.Appointments.Labels.Add(System.Drawing.Color.Empty, string.Empty);
     storage.Appointments.Labels.Add(System.Drawing.Color.Red, "Cao nhất");
     storage.Appointments.Labels.Add(System.Drawing.Color.Orange, "Cao");
     storage.Appointments.Labels.Add(System.Drawing.Color.Cyan, "Trung bình");
     storage.Appointments.Labels.Add(System.Drawing.Color.YellowGreen, "Thấp nhất");
     storage.Appointments.Labels.Add(System.Drawing.Color.Yellow, "Thấp");
     storage.Appointments.Mappings.Label = "MUC_UU_TIEN";
     storage.Appointments.Mappings.Status = "TINH_TRANG";
     storage.Appointments.Mappings.Start = "NGAY_BAT_DAU";
     storage.Appointments.Mappings.End = "NGAY_KET_THUC_DU_KIEN";
     storage.Appointments.Mappings.Description = "MO_TA";
     storage.Appointments.Mappings.Subject = "TIEN_DO";
     schedulerControl1.OptionsCustomization.AllowAppointmentEdit = UsedAppointmentType.All;
     schedulerControl1.OptionsCustomization.AllowInplaceEditor = UsedAppointmentType.None;
     schedulerControl1.DayView.AppointmentDisplayOptions.AppointmentHeight = 40;
     schedulerControl1.WeekView.AppointmentDisplayOptions.AppointmentHeight = 40;
     schedulerControl1.MonthView.AppointmentDisplayOptions.AppointmentHeight = 40;
 }
        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;
        }
 public CalendarImporter(SchedulerStorage storage)
 {
     this.storage = storage;
 }
Esempio n. 26
0
 private void InitSchedulerStorage(SchedulerStorage storage, object appointmentsDataSource)
 {
     storage.Appointments.Labels.Clear();
      storage.Appointments.Labels.Add(System.Drawing.Color.LightBlue, "Sáng");
      storage.Appointments.Labels.Add(System.Drawing.Color.Orange, "Chiều");
      schedulerControl.Storage.Appointments.DataSource = appointmentsDataSource;
      storage.Appointments.Mappings.Label = "THOI_GIAN";
      storage.Appointments.Mappings.Subject = "CUOC_HOP";
      storage.Appointments.Mappings.Start = "GIO_BAT_DAU";
      storage.Appointments.Mappings.End = "GIO_KET_THUC";
 }
 protected void Page_Init(object sender, EventArgs e)
 {
     storage = new SchedulerStorage();
     storage.ReminderAlert += storage_ReminderAlert;
 }
Esempio n. 28
0
 public RemindersForm(XafApplication xafApplication, SchedulerStorage storage)
     : base(storage) {
     _xafApplication = xafApplication;
 }
Esempio n. 29
0
 public ResourceNOfAppointmentsComparer(SchedulerStorage schedulerStorage)
 {
     this.schedulerStorage = schedulerStorage;
 }
Esempio n. 30
0
        private void BindScheduler()
        {
            // 1) Retrieve data rows
            SqlConnection connection    = new SqlConnection(@"Data Source=.\SQLExpress;Initial Catalog=SchedulerBindDynamically;Integrated Security=SSPI");
            SqlCommand    selectCommand = new SqlCommand("SELECT ID, StartTime, EndTime, Subject FROM CarScheduling", connection);

            dataSet     = new DataSet();
            dataAdapter = new SqlDataAdapter(selectCommand);

            dataAdapter.Fill(dataSet, "CarScheduling");

            // 2) Adjust mappings
            SchedulerStorage       schedulerStorage    = schedulerControl1.Storage;
            AppointmentMappingInfo appointmentMappings = schedulerStorage.Appointments.Mappings;

            appointmentMappings.AppointmentId = "ID";
            appointmentMappings.Start         = "StartTime";
            appointmentMappings.End           = "EndTime";
            appointmentMappings.Subject       = "Subject";

            schedulerStorage.Appointments.CommitIdToDataSource = false;

            // 3) Bind scheduler to data
            schedulerStorage.Appointments.DataSource = dataSet.Tables["CarScheduling"];
            if (schedulerStorage.Appointments.Count > 0)
            {
                schedulerControl1.Start = schedulerStorage.Appointments[0].Start;
            }

            // 4) Define Insert, Update, Delete commands
            dataAdapter.InsertCommand = new SqlCommand("INSERT INTO CarScheduling (StartTime, EndTime, Subject, TimeStamp) VALUES (@StartTime, @EndTime, @Subject, GetDate())", connection);

            dataAdapter.InsertCommand.Parameters.Add("@StartTime", SqlDbType.DateTime);
            dataAdapter.InsertCommand.Parameters.Add("@EndTime", SqlDbType.DateTime);
            dataAdapter.InsertCommand.Parameters.Add("@Subject", SqlDbType.NVarChar);

            dataAdapter.InsertCommand.Parameters["@StartTime"].SourceColumn = "StartTime";
            dataAdapter.InsertCommand.Parameters["@EndTime"].SourceColumn   = "EndTime";
            dataAdapter.InsertCommand.Parameters["@Subject"].SourceColumn   = "Subject";

            dataAdapter.UpdateCommand = new SqlCommand("UPDATE CarScheduling SET StartTime = @StartTime, EndTime = @EndTime, Subject = @Subject, TimeStamp = GetDate() WHERE ID = @ID", connection);

            dataAdapter.UpdateCommand.Parameters.Add("@ID", SqlDbType.Int);
            dataAdapter.UpdateCommand.Parameters.Add("@StartTime", SqlDbType.DateTime);
            dataAdapter.UpdateCommand.Parameters.Add("@EndTime", SqlDbType.DateTime);
            dataAdapter.UpdateCommand.Parameters.Add("@Subject", SqlDbType.NVarChar);

            dataAdapter.UpdateCommand.Parameters["@ID"].SourceColumn        = "ID";
            dataAdapter.UpdateCommand.Parameters["@StartTime"].SourceColumn = "StartTime";
            dataAdapter.UpdateCommand.Parameters["@EndTime"].SourceColumn   = "EndTime";
            dataAdapter.UpdateCommand.Parameters["@Subject"].SourceColumn   = "Subject";

            dataAdapter.DeleteCommand = new SqlCommand("DELETE FROM CarScheduling WHERE ID = @ID", connection);
            dataAdapter.DeleteCommand.Parameters.Add("@ID", SqlDbType.Int);
            dataAdapter.DeleteCommand.Parameters["@ID"].SourceColumn = "ID";

            // 5) Subscribe to events (data-related operations)
            schedulerStorage.AppointmentsInserted += Storage_AppointmentsModified;
            schedulerStorage.AppointmentsChanged  += Storage_AppointmentsModified;
            schedulerStorage.AppointmentsDeleted  += Storage_AppointmentsModified;
            dataAdapter.RowUpdated += Adapter_RowUpdated;
        }
        public static void GenerateEvents(List <CustomAppointmentSourceObject> eventList, SchedulerStorage storage)
        {
            int count = storage.Resources.Count;

            for (int i = 0; i < count; i++)
            {
                Resource resource   = storage.Resources[i];
                string   subjPrefix = resource.Caption + "'s ";
                eventList.Add(CreateEvent(subjPrefix + "meeting", resource.Id, 2, 5, 14));
                eventList.Add(CreateEvent(subjPrefix + "travel", resource.Id, 3, 6, 10));
                eventList.Add(CreateEvent(subjPrefix + "talk", resource.Id, 0, 4, 16));
            }
        }
Esempio n. 32
0
 public MappingConverterReminderInfo(SchedulerStorage dataStorage)
 {
     storage = dataStorage;
 }
 public CustomAppointmentStorage(SchedulerStorage storage) : base(storage)
 {
     SetAppointmentFactory(new CustomAppointmentFactory());
 }
Esempio n. 34
0
 public InitHelper(SchedulerStorage currentStorage)
 {
     Storage = currentStorage;
 }
Esempio n. 35
0
        private static void Boom(IEnumerable <TimeEventAppointment> appts, NormalEventCreator normalEventCreator, SchedulerStorage storage)
        {
            _session.BeginTransaction();

            var timeEventAppointments = appts as TimeEventAppointment[] ?? appts.ToArray();

            foreach (var appt in timeEventAppointments)
            {
                Event e;
                if (appt.Type == AppointmentType.Occurrence)
                {
                    e = appt.RecurrencePattern.GetSourceObject(storage) as Event;
                }
                else
                {
                    e = appt.GetSourceObject(storage) as Event;
                    if (e == null)
                    {
                        Console.WriteLine($"Не найден исходный объект события. Тип: {appt.Type}");
                        continue;
                    }
                }
                var newEvent = normalEventCreator.CreateEvent(appt, e);
                foreach (var el in e.EventLocations)
                {
                    var newEl = new EventLocation(_session)
                    {
                        Event    = newEvent,
                        Location = el.Location
                    };
                    newEl.Save();

                    foreach (var newLe in el.Educators.Select(le => new LocationEducator(_session)
                    {
                        Educator = le.Educator,
                        EducatorEmployment = le.EducatorEmployment,
                        EventLocation = newEl
                    }))
                    {
                        newLe.Save();
                    }
                }
            }
            _session.CommitTransaction();
            if (timeEventAppointments.Length > 0)
            {
                Console.WriteLine($"{timeEventAppointments.Length} Normals added");
            }
            GC.Collect();
        }
Esempio n. 36
0
 public static void FillStorageData(SchedulerStorage storage)
 {
     //FillStorageCollection(storage.Resources.Items, resDataResourceName);
     //FillStorageCollection(storage.Appointments.Items, aptDataResourceName);
 }
Esempio n. 37
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 MappingConverterLabel(SchedulerStorage dataStorage)
 {
     storage = dataStorage;
 }