Multi Client Support - Needs Update Post Socket to support Multiple "Clients" not in a single Bus.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user