Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CalendarInfo"/> class.
 /// </summary>
 /// <param name="calendar">The calendar.</param>
 /// <param name="link">The link.</param>
 public CalendarInfo(Calendar calendar, CalendarFolderLink link)
 {
     _calendarLink = link;
     _calendar = calendar;
 }
Exemple #2
0
        /// <summary>
        /// Initializes the specified event storage.
        /// </summary>
        /// <param name="eventStorage">The event storage.</param>
        public void Initialize(MetaObject eventStorage)
        {
            _calendar = eventStorage as Calendar;

            if (_calendar == null)
                throw new ArgumentException("event storage");
        }