internal void RaiseAppointmentMove(AppointmentEventArgs e) { if (AppoinmentMove != null) AppoinmentMove(this, e); }
//when an event is moved update thde database private void calendarView_OnAppointmentMove(object sender, AppointmentEventArgs e) { if (PlannerSettings.Default.SyncEvents == true) { GoogleCalendarSync.updateEvent(e.Appointment); } //update database Database.modifyDatabase("UPDATE Event SET StartDateTime = DATETIME('" + Database.getDateTime(e.Appointment.StartDate) + "'), EndDateTime = DATETIME('" + Database.getDateTime(e.Appointment.EndDate) + "') WHERE EventID = '" + e.Appointment.AppointmentId + "';"); updateEvents(); }