get vaults rendering on the screen

This commit is contained in:
TheXamlGuy
2024-04-21 22:29:48 +01:00
parent e28386a2d5
commit 161ea1bf44
14 changed files with 95 additions and 40 deletions
+22
View File
@@ -0,0 +1,22 @@
using System.Collections;
using Toolkit.Foundation;
namespace Bitvault;
public class VaultHostCollection :
IVaultHostCollection
{
private readonly List<IComponentHost> hosts = [];
public void Add(IComponentHost host)
{
hosts.Add(host);
}
public IEnumerator<IComponentHost> GetEnumerator() =>
hosts.GetEnumerator();
IEnumerator IEnumerable.GetEnumerator() =>
hosts.GetEnumerator();
}