AvalonGUIConfig.AvalonHelper.SetSkinImport C# (CSharp) Method

SetSkinImport() public static method

Sets a new path for a skin files
public static SetSkinImport ( string file, string importtag, string value ) : void
file string
importtag string
value string
return void
        public static void SetSkinImport(string file, string importtag, string value)
        {
            XmlDocument doc = LoadXMLDocument(file);
            if (doc == null) return;

            // build xpath string
            string xpath = string.Format("/window/controls/import[@tag='{0}']", importtag);

            XmlNode node = doc.DocumentElement.SelectSingleNode(xpath);
            if (node == null)
                return;

            node.InnerText = value;
            doc.Save(file);
        }