예제 #1
0
 internal static bool ThemeExists(string themeName)
 {
     if (!VirtualDirectoryExistsWithAssert(ThemeDirectoryCompiler.GetAppThemeVirtualDir(themeName)) && !VirtualDirectoryExistsWithAssert(ThemeDirectoryCompiler.GetGlobalThemeVirtualDir(themeName)))
     {
         return(false);
     }
     return(true);
 }
        public static PageTheme GetCompiledInstance(string theme, HttpContext context)
        {
            Type t = ThemeDirectoryCompiler.GetCompiledType(theme, context);

            if (t == null)
            {
                return(null);
            }

            PageTheme pt = (PageTheme)Activator.CreateInstance(t);

            return(pt);
        }