Beispiel #1
0
        public void Execute()
        {
            if (nameChanged)
            {
                bool b = origParentChildIndex < origParentNode.Children.Count && origParentNode.Children[origParentChildIndex] == propNode;
                Debug.Assert(b);
                if (!b)
                {
                    throw new InvalidOperationException();
                }
                origParentNode.Children.RemoveAt(origParentChildIndex);
                newOptions.CopyTo(propNode.PropertyDefinition);

                origParentNode.AddToChildren(propNode);
            }
            else
            {
                newOptions.CopyTo(propNode.PropertyDefinition);
            }
            propNode.RaiseUIPropsChanged();
        }