Ejemplo n.º 1
0
        public PageHTMLBuilder LoadTheme(string Path)
        {
            if (Directory.Exists(Path))
            {
                foreach (string file in Directory.GetFiles(Path, "*.*", SearchOption.AllDirectories))
                {
                    switch (System.IO.Path.GetExtension(file).ToLower())
                    {
                    case ".css":
                        StyleBuilder.AppendFile(file);
                        break;

                    case ".js":
                        ScriptBuilder.AppendFile(file);
                        break;

                    default:
                        break;
                    }
                }
            }
            return(this);
        }