void importer_AppointmentImporting(object sender, AppointmentImportingEventArgs e)
        {
            OutlookAppointmentImportingEventArgs args = e as OutlookAppointmentImportingEventArgs;

            AddToLog(String.Format("Importing Subj:{0}, started at {1:F} ...", args.OutlookAppointment.Subject, args.OutlookAppointment.Start));
            if (args.OutlookAppointment.BusyStatus == DevExpress.XtraScheduler.Outlook.Interop.OlBusyStatus.olWorkingElsewhere)
            {
                e.Cancel = true;
                AddToLog("Cancelled because of its busy type (working elsewhere).");
            }
        }
        void importer_AppointmentImporting(object sender, AppointmentImportingEventArgs e)
        {
            OutlookAppointmentImportingEventArgs args = (OutlookAppointmentImportingEventArgs)e;

            progressBar.Value += 1;
            DispatcherHelper.DoEvents();

            bool cancel = args.OutlookAppointment.IsRecurring ? IsCancelForRecurring : IsCancelForNonRecurring;

            if (cancel)
            {
                e.Cancel = true;
            }
        }
Ejemplo n.º 3
0
 void importer_AppointmentImporting(object sender, AppointmentImportingEventArgs e)
 {
     OutlookAppointmentImportingEventArgs args = (OutlookAppointmentImportingEventArgs)e;
 }