Ejemplo n.º 1
0
        private void CopyFrom(UserTask task)
        {
            base.CopyFrom(task);

            _subject           = task._subject;
            _startDate         = task._startDate;
            _dueDate           = task._dueDate;
            _reminder          = task._reminder;
            _isReminderEnabled = task._isReminderEnabled;
            _status            = task._status;
            _priority          = task._priority;
            _progress          = task._progress;
            _categoryID        = task._categoryID;
            _owner             = task._owner;
            _readOnly          = task._readOnly;
            _private           = task._private;
            _lastModified      = task._lastModified;
        }
Ejemplo n.º 2
0
        protected UserTask(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
            _saveChangesToDisk = false;

            _subject           = info.GetString(TaskDatabase.SubjectAttribute);
            _startDate         = (DateTime?)info.GetValue(TaskDatabase.StartDateAttribute, typeof(DateTime?));
            _dueDate           = (DateTime?)info.GetValue("due", typeof(DateTime?));
            _reminder          = info.GetDateTime(TaskDatabase.ReminderAttribute);
            _isReminderEnabled = info.GetBoolean(TaskDatabase.IsReminderEnabledAttribute);
            _status            = (StatusPhase)info.GetByte(TaskDatabase.StatusAttribute);
            _priority          = (Priority)info.GetByte(TaskDatabase.PriorityAttribute);
            _progress          = info.GetDouble(TaskDatabase.ProgressAttribute);
            _categoryID        = info.GetString(TaskDatabase.CategoryAttribute);
            _owner             = info.GetString(TaskDatabase.OwnerAttribute);
            _readOnly          = info.GetBoolean(TaskDatabase.ReadOnlyAttribute);
            _private           = info.GetBoolean(TaskDatabase.PrivateAttribute);
            _lastModified      = info.GetDateTime(TaskDatabase.LastModifiedAttribute);
            DetailsDocument    = Serializer.FlowDocumentDeserialize(info.GetString("dtl"));
        }