void OnItemClick(string theme) { currentTheme = theme; string themeLink = "/css/switcher-resources/themes/" + currentTheme + "/bootstrap.min.css"; ThemeLinkService.SetTheme(themeLink); Shown = !Shown; ShownChanged?.Invoke(Shown); }
protected override void OnInitialized() { base.OnInitialized(); _subscription = ThemeLinkService.Subscribe(this); _initialized = true; }