Exemplo n.º 1
0
        private static string ProcessStyleSheet(string styleSheetContent, MasterPageTheme masterPageTheme, MasterPageThemeColor masterPageThemeColor)
        {
            string[] keyNames = null;
            if (masterPageTheme == MasterPageTheme.Modern)
            {
                keyNames = new string[] { "AddNew.png", "NotificationCross.png", "SearchLense.png" };
            }
            else if (masterPageTheme == MasterPageTheme.Gradient)
            {
                keyNames = new string[] { "MainMenuBottom.gif", "MainMenuItemRight.gif", "MainMenuItemLeft.gif"
                                          , "SubmenuButtonItemMiddle.gif", "SubmenuButtonItemLeft.gif", "SubmenuButtonItemRight.gif"
                                          , "SubmenuFirstLevelItemMiddle.gif", "SubmenuFirstLevelItemLeft.gif", "SubmenuFirstLevelItemRight.gif"
                                          , "SubmenuSecondLevelItemPointer.gif"
                                          , "SubmenuLastSecondLevelItemMiddle.gif", "SubmenuLastSecondLevelItemLeft.gif", "SubmenuLastSecondLevelItemRight.gif" };
            }

            return(ProcessStyleSheet(styleSheetContent, keyNames, ResourceProvider.GetMasterPageThemeColorResource(masterPageTheme, masterPageThemeColor, "{0}")));
        }
Exemplo n.º 2
0
 internal static void RegisterScriptResource(Control ctl, string key, string resourceName)
 {
     ScriptManager.RegisterStartupScript(ctl, ctl.GetType(), key, GetJavaScript(ResourceProvider.GetResourceUrl(resourceName, true)), false);
 }
Exemplo n.º 3
0
 private static string ProcessStyleSheet(string styleSheetContent, DetailMenuTheme theme)
 {
     if (theme == DetailMenuTheme.Modern)
     {
         return(ProcessStyleSheet(styleSheetContent, new string[] { "Arrow.png", "CheckBox.png", "CheckBoxChecked.png" }, ResourceProvider.GetDetailMenuThemeResource(theme, "{0}")));
     }
     return(styleSheetContent);
 }