public static void RegisterThemeRepository(XmlStyleRepository styleRepository, string themeName)
        {
            XmlStyleRepository xmlStyleRepository = ThemeResolutionService.registeredStyleRepositoriesByThemeName[(object)themeName] as XmlStyleRepository;

            if (xmlStyleRepository != null)
            {
                xmlStyleRepository.MergeWith(styleRepository);
            }
            else
            {
                ThemeResolutionService.registeredStyleRepositoriesByThemeName[(object)themeName] = (object)styleRepository;
            }
            ThemeResolutionService.RaiseThemeChanged(themeName, (string)null);
        }
        public static void RegisterThemeRepository(Telerik.WinControls.Styles.XmlStyleRepository styleRepository, string themeName)
        {
            XmlStyleRepository existingRepository = registeredStyleRepositoriesByThemeName[themeName] as XmlStyleRepository;

            if (existingRepository != null)
            {
                existingRepository.MergeWith(styleRepository);
            }
            else
            {
                registeredStyleRepositoriesByThemeName[themeName] = styleRepository;
            }

            RaiseThemeChanged(themeName);
        }