예제 #1
0
파일: CalendarInfo.cs 프로젝트: 0anion0/IBN
 /// <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;
 }
예제 #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");
        }