Beispiel #1
0
        private void OnRemoving(XmlCollectionItem <T> item)
        {
            advisor.OnRemoving(item.Value);

            if (accessor.IsReference)
            {
                references.OnAssigningNull(item.Node, item.Value);
            }
        }
Beispiel #2
0
        private bool CommitInsert(int index, IXmlNode node, T value, bool append)
        {
            var item = new XmlCollectionItem <T>(node, value);

            if (append)
            {
                items.Add(item);
            }
            else
            {
                items.Insert(index, item);
            }

            advisor.OnInserted(value, index);
            return(true);
        }
Beispiel #3
0
        private bool CommitInsert(int index, IXmlNode node, T value, bool append)
        {
            var item = new XmlCollectionItem <T>(node, value);

            if (append)
            {
                items.Insert(index, item);
            }
            else
            {
                items.Add(item);
            }

            AttachPropertyChanged(value);
            NotifyListChanged(ListChangedType.ItemAdded, index);
            return(true);
        }