Multi Client Support - Needs Update Post Socket to support Multiple "Clients" not in a single Bus.

This commit is contained in:
2026-03-20 22:48:04 -04:00
parent 44fa9a8bb2
commit 2dfc898e8a
4 changed files with 164 additions and 43 deletions

View File

@@ -1,9 +1,9 @@
using Microsoft.Extensions.DependencyInjection;
namespace RelayClient;
namespace RelayClient;
public partial class App : Application
{
private bool _openedSecondWindow;
public App()
{
InitializeComponent();
@@ -11,6 +11,28 @@ public partial class App : Application
protected override Window CreateWindow(IActivationState? activationState)
{
return new Window(new AppShell());
var keeperWindow = new Window(new MainPage("Keeper317"))
{
Title = "Relay Client - Keeper317"
};
keeperWindow.Created += KeeperWindow_Created;
return keeperWindow;
}
private void KeeperWindow_Created(object? sender, EventArgs e)
{
if (_openedSecondWindow)
return;
_openedSecondWindow = false;
var kiraWindow = new Window(new MainPage("Ru_Kira"))
{
Title = "Relay Client - Ru_Kira"
};
Current?.OpenWindow(kiraWindow);
}
}