Exemple #1
0
 public Reparenting(LinearTreeNode <T> node, LinearTreeNode <T> oldParent, CollectionChange remChange, LinearTreeNode <T> newParent,
                    CollectionChange insChange, LinearTreeNode <T> mostCommon, int nodeOffsetRelativeToMostCommonBefore, int nodeOffsetRelativeToMostCommonAfter)
 {
     Node       = node;
     OldParent  = oldParent;
     RemChange  = remChange;
     NewParent  = newParent;
     InsChange  = insChange;
     MostCommon = mostCommon;
     NodeOffsetRelativeToMostCommonBefore = nodeOffsetRelativeToMostCommonBefore;
     NodeOffsetRelativeToMostCommonAfter  = nodeOffsetRelativeToMostCommonAfter;
 }
Exemple #2
0
        public LinearTreeNode(
            T value,
            Action <LinearTreeNode <T>, CollectionChange> dispatchCollectionChange,
            LinearTreeNode <T> parent)
        {
            _dispatchCollectionChange = dispatchCollectionChange;

            _parent = parent;

            _offset = parent == null ? 0 : 1;

            Value = value;
        }