Пример #1
0
        protected override void ProcessUpdate()
        {
            base.ProcessUpdate();

            ValidationManager vm = editor.ValidationManager;

            validItems = vm.GetValidElements(parent, node, false);
            allItems   = vm.GetAllElements();
        }
Пример #2
0
        protected override void ProcessUpdate()
        {
            base.ProcessUpdate();

            ValidationManager vm = editor.ValidationManager;

            // TODO: E: entities!
            if (parent == null || parent.ParentNode == null || parent.ParentNode.NodeType != XmlNodeType.Element)
            {
                return;
            }

            validItems = vm.GetValidElements((XmlElement)parent.ParentNode, parent, true);
            allItems   = vm.GetAllElements();
        }