private Termin AddTermin(User forUser) { string archive = forUser.GetDavidArchivePath(Global.DavidArchiveTypes.Kalender); David.CreateMsgItm2Params createParams = David.DavidManager.DavidService.CreateCalendarItem(dayView.SelectionStart, dayView.SelectionEnd, archive); Model.Entities.Termin termin = new Model.Entities.Termin(createParams.MessageItem2Object); myTerminliste.Add(termin); return(termin); }
void dayView_AppointmentMove(object sender, Calendar.AppointmentEventArgs e) { Model.Entities.Termin termin = e.Appointment as Model.Entities.Termin; if (termin != null) { termin.StartDate = e.Appointment.StartDate; termin.EndDate = e.Appointment.EndDate; } }