private async void LoadModules() { ListModules.Items.Clear(); int IDThemeMonaco = await ModulesAccessManager.GetCurrentThemeMonacoID(), IDTheme = await ModulesAccessManager.GetCurrentThemeIDAsync(); foreach (InfosModule module in await ModulesAccessManager.GetModulesAsync(true)) { var module_infos = new ModuleInfosShow { Module = module, StrokeThickness = 0 }; var reader = new AddonReader(module_infos.Module.ID); module_infos.Thumbnail = await reader.GetAddonIconViaIDAsync(); switch (module.ModuleType) { case ModuleTypesList.Addon when currentSelectedButton == 0: ListModules.Items.Add(module_infos); break; case ModuleTypesList.Theme when currentSelectedButton == 1: if (IDTheme == module_infos.Module.ID || IDThemeMonaco == module_infos.Module.ID) { module_infos.StrokeThickness = 2; } ListModules.Items.Add(module_infos); break; } } }