private void Form1_Load(object sender, EventArgs e) { InitAppointments(); schedulerControl1.Start = DateTime.Now; schedulerControl1.GroupType = DevExpress.XtraScheduler.SchedulerGroupType.None; schedulerControl1.ActiveViewType = SchedulerViewType.Month; // Obtain the names of MS Outlook calendars. comboBoxEdit1.Properties.Items.AddRange(OutlookExchangeHelper.GetOutlookCalendarPaths()); synchronizerHelper = new OutlookSynchronizerHelper(schedulerControl1.Storage, "", OutlookEntryIDFieldName); checkEdit1.Checked = true; }
private void ExportUsingCriteria() { OutlookExport exporter = schedulerControl1.Storage.CreateOutlookExporter() as OutlookExport; if (exporter != null) { exporter.AppointmentExporting += exporter_AppointmentExporting; exporter.AppointmentExported += exporter_AppointmentExported; exporter.OnException += exporter_OnException; exporter.CalendarFolderName = OutlookExchangeHelper.GetOutlookCalendarFolders().FirstOrDefault().FullPath; using (MemoryStream stream = new MemoryStream()) { exporter.Export(stream); } } }
private void Form1_Load(object sender, EventArgs e) { InitAppointments(); schedulerControl1.Start = DateTime.Now; schedulerControl1.GroupType = DevExpress.XtraScheduler.SchedulerGroupType.Resource; schedulerControl1.ActiveViewType = SchedulerViewType.Day; // Obtain the names of MS Outlook calendars. comboBoxEdit1.Properties.Items.AddRange(OutlookExchangeHelper.GetOutlookCalendarPaths()); SyncronizationOptionForm.AllowCreateAppointmentInOutlook = true; SyncronizationOptionForm.AllowCreateAppointmentInScheduler = true; SyncronizationOptionForm.AllowRemoveAppointmentInOutlook = true; SyncronizationOptionForm.AllowRemoveAppointmentInScheduler = true; SyncronizationOptionForm.AllowUpdateAppointmentInOutlook = true; SyncronizationOptionForm.AllowUpdateAppointmentInScheduler = true; }
public Form1() { InitializeComponent(); cbOutlookCalendars.DataSource = OutlookExchangeHelper.GetOutlookCalendarPaths(); SchedulerSyncCustomFields.DataSet1.EventsRow row = dataSet11.Events.NewEventsRow(); DateTime baseTime = DateTime.Today; row.StartTime = baseTime.AddHours(1); row.EndTime = baseTime.AddHours(2); row.Subject = "Test"; row.Description = "Test procedure"; row.ContactInfo = "Test contact info"; dataSet11.Events.AddEventsRow(row); schedulerControl1.Start = baseTime; }