private void barbtnOutlookExportSingle_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { #region #ExportSelectedAppointments AppointmentBaseCollection apts = schedulerControl1.SelectedAppointments; if (apts != null) { SchedulerStorage storage = new SchedulerStorage(); foreach (Appointment apt in apts) { Appointment aptCopy = apt.Copy(); storage.Appointments.Add(aptCopy); } storage.ExportToOutlook(); } #endregion #ExportSelectedAppointments }