Inheritance: System.EventArgs
示例#1
0
文件: DayView.cs 项目: ckolumbus/ptm
 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();
        }