상속: 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();
        }