more settings work

This commit is contained in:
TheXamlGuy
2024-02-11 22:18:40 +00:00
parent 812556f8b0
commit 6e738becd4
33 changed files with 152 additions and 80 deletions
+21
View File
@@ -0,0 +1,21 @@
using System.Collections;
namespace Hyperbar.Widget;
public class WidgetHostCollection :
IWidgetHostCollection
{
private readonly List<IWidgetHost> hosts = [];
public void Add(IWidgetHost host)
{
hosts.Add(host);
}
public IEnumerator<IWidgetHost> GetEnumerator() =>
hosts.GetEnumerator();
IEnumerator IEnumerable.GetEnumerator() =>
hosts.GetEnumerator();
}