VixenApplication.ConfigElements.AddNewNode C# (CSharp) Метод

AddNewNode() приватный Метод

private AddNewNode ( string nodeName, bool repopulateNodeTree = true, ElementNode parent = null, bool skipPatchCheck = false ) : ElementNode
nodeName string
repopulateNodeTree bool
parent ElementNode
skipPatchCheck bool
Результат ElementNode
        private ElementNode AddNewNode(string nodeName, bool repopulateNodeTree = true, ElementNode parent = null, bool skipPatchCheck = false)
        {
            // prompt the user if it's going to make a patched leaf a group; if they abandon it, return null
            if (!skipPatchCheck && CheckIfNodeWillLosePatches(parent))
                return null;

            ElementNode newNode = ElementNodeService.Instance.CreateSingle(parent, nodeName, true);
            if (repopulateNodeTree)
                PopulateNodeTree();
            return newNode;
        }