Exemple #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}")));
        }
Exemple #2
0
 internal static void RegisterScriptResource(Control ctl, string key, string resourceName)
 {
     ScriptManager.RegisterStartupScript(ctl, ctl.GetType(), key, GetJavaScript(ResourceProvider.GetResourceUrl(resourceName, true)), false);
 }
Exemple #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);
 }