Example #1
0
 public static ThemeContext GetInstance()
 {
     if (themeContext == null)
     {
         themeContext = new ThemeContext();
     }
     return(themeContext);
 }
        protected virtual string GetCurrentTheme(bool mobile)
        {
            themeContext = ThemeContext.GetInstance();

            if (mobile)
            {
                //mobile theme
                return(themeContext.WorkingMobileTheme);
            }
            else
            {
                //desktop theme
                return(themeContext.WorkingDesktopTheme);
            }
        }