Пример #1
0
        private void LoadCalendars()
        {
            var calendar = new Metadata.Calendar {
                CalendarId = Guid.NewGuid().ToString(), Provider = "LocalCalendarsStorage", Name = "LocalCalendar"
            };

            _calendars.Add(calendar);
            _worker.GetData <Appointment>().ForEach(f => _calendarsEvents.Add(f));
        }
Пример #2
0
 public IEnumerable <Appointment> GetAppointments(Metadata.Calendar calendar)
 {
     return(GetAppointments(calendar.CalendarId));
 }