Improve removal of items

This commit is contained in:
TheXamlGuy
2024-01-13 11:04:33 +00:00
parent b47a563876
commit ff1d400531
16 changed files with 245 additions and 109 deletions
@@ -4,11 +4,11 @@ public class WidgetComponentViewModelEnumerator(PrimaryWidgetConfiguration confi
IViewModelFactory<PrimaryCommandConfiguration, IWidgetComponentViewModel?> factory) :
IViewModelEnumerator<IWidgetComponentViewModel>
{
public async IAsyncEnumerable<IWidgetComponentViewModel?> Next()
public IEnumerable<IWidgetComponentViewModel?> Next()
{
foreach (PrimaryCommandConfiguration item in configuration)
{
yield return await factory.CreateAsync(item);
yield return factory.Create(item);
}
}
}