示例#1
0
        /// <summary>
        /// Loads skin from specified file
        /// </summary>
        public bool Load(string dir, string fileName)
        {
            if (fileName == "")
            {
                return(false);
            }
            dir     = SkinSettings.BuildFullPath(dir);
            sResDir = dir;
            XmlDocument xmlDocument = new XmlDocument();
            XmlNode     root        = null;

            try
            {
                xmlDocument.Load(dir + @"\" + fileName);
                root = xmlDocument.FirstChild;
                if (root == null)
                {
                    return(false);
                }
            }
            catch (Exception)
            {
                return(false);
            }

            try
            {
                root = root.NextSibling;
                LoadFormSkin(root);
            }
            catch (Exception)
            {
                return(false);
            }
            return(true);
        }
示例#2
0
 public void    SkinScrollers()
 {
     UpdateInfo();
     SkinSettings.SkinController(cbInfo.hwndList);
 }