Ejemplo n.º 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;
        }
Ejemplo n.º 2
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     _subject     = null;
     _location    = null;
     _description = null;
     if (_recurrenceInfo != null)
     {
         _recurrenceInfo.Dispose();
         _recurrenceInfo = null;
     }
     _propChanged = null;
     MessageBus.Subject <LibraryRenameMessage>().Observers -= OnLibraryRename;
 }
 public AppointmentChangedEventArgs(AppointmentInfo appointment, PWRecurrenceInfo rec, string propertyName)
 {
     Appointment = appointment;
     Recurrence  = rec;
     ProperyName = propertyName;
 }