private void UpdateAllEvents()
 {
     recurrence = calendar.GetRecurrenceSettings(selectedEvent);
     CalendarEventUpdater updateEvent = new CalendarEventUpdater(GoogleCalendar.ActionType.all, selectedEvent, recurrence);
     repository.SetEventUpdater(updateEvent);
     CloseWindow();
 }
Esempio n. 2
0
 public CalendarEventUpdater(GoogleCalendar.ActionType UpdateType, CalendarEvent calEvent, RecurrenceSettings calRecurrence)
 {
     this.Type = UpdateType;
     this.CalendarEvent = calEvent;
     this.Recurrence = calRecurrence;
     this.Reminder = 10;
 }
Esempio n. 3
0
        private CalendarEvent GetAllPreviousEvents(CalendarEvent ev)
        {
            // Get recurrence event using it's single instance event id
            CalendarEvent old = ConvertGoogleEventToCalendarEvent(GetGoogleEventById(GetMainEventId(ev.Id)));

            // Get old event recurrence settings
            RecurrenceSettings previous = GetRecurrenceSettings(old);

            // Change it to end one day before new event
            previous.EndsOn(ev.Start.AddDays(-1));
            old.RRule = previous.ToString();

            return(old);
        }
Esempio n. 4
0
 public CalendarEventUpdater(GoogleCalendar.ActionType UpdateType, CalendarEvent calEvent, RecurrenceSettings calRecurrence)
 {
     this.Type          = UpdateType;
     this.CalendarEvent = calEvent;
     this.Recurrence    = calRecurrence;
     this.Reminder      = 10;
 }