예제 #1
0
        /// <summary>
        /// Function: Get data from a object to current object
        /// Author  : Jerry Xu
        /// Date    : 2008-7-8
        /// </summary>
        /// <param name="memory">LibraryAdapter</param>
        public override void FromTo(LibraryAdapter item)
        {
            //this.Caption = memory.Caption;
            base.FromTo(item);

            //TODO:
            AppointmentInfo adp = item as AppointmentInfo;

            _allDay          = adp._allDay;
            _description     = adp._description;
            _duration        = adp._duration;
            _end             = adp._end;
            _hasReminder     = adp._hasReminder;
            _labelId         = adp._labelId;
            _location        = adp._location;
            _exactTiming     = adp._exactTiming;
            _playMessageOnce = adp._playMessageOnce;
            if (adp._recurrenceInfo != null)
            {
                _recurrenceInfo = CloneManager.Clone <PWRecurrenceInfo>(adp._recurrenceInfo);
            }
            else
            {
                _recurrenceInfo = null;
            }

            _resourceId = adp._resourceId;
            _start      = adp._start;
            _statusId   = adp._statusId;
            _subject    = adp._subject;
            _type       = adp._type;
        }
 public AppointmentChangedEventArgs(AppointmentInfo appointment, PWRecurrenceInfo rec, string propertyName)
 {
     Appointment = appointment;
     Recurrence  = rec;
     ProperyName = propertyName;
 }
예제 #3
0
 public void Add(AppointmentInfo item)
 {
     _items.Add(item);
 }
예제 #4
0
 public void Delete(AppointmentInfo item)
 {
     _items.Remove(item);
 }