15 lines
481 B
C#
15 lines
481 B
C#
namespace Hyperbar.Windows.Primary;
|
|
|
|
public class WidgetComponentViewModelEnumerator(PrimaryWidgetConfiguration configuration,
|
|
IViewModelFactory<PrimaryCommandConfiguration, IWidgetComponentViewModel?> factory) :
|
|
IViewModelEnumerator<IWidgetComponentViewModel>
|
|
{
|
|
public IEnumerable<IWidgetComponentViewModel?> Next()
|
|
{
|
|
foreach (PrimaryCommandConfiguration item in configuration)
|
|
{
|
|
yield return factory.Create(item);
|
|
}
|
|
}
|
|
}
|