Beispiel #1
0
        private ChangedItem grabIndex(Guid identifier)
        {
            ChangedItem index = null;

            _changedItems.TryGetValue(identifier, out index);

            if (index == null)
            {
                index = new ChangedItem();
                _changedItems[identifier] = index;
            }

            return(index);
        }
Beispiel #2
0
        /// <summary>
        /// Adds to Deleted, and removes from Updated
        /// </summary>
        /// <param name="item"></param>
        public void Delete(Guid identifier, DateTime timeDeleted)
        {
            ChangedItem index = grabIndex(identifier);

            index.SetDeleted(timeDeleted);
        }
Beispiel #3
0
        /// <summary>
        /// Adds to Updated and removes from Deleted
        /// </summary>
        /// <param name="item"></param>
        public void Add(BaseItemWin item)
        {
            ChangedItem index = grabIndex(item);

            index.SetUpdated();
        }