Update MPN00BS

This commit is contained in:
Li 2022-07-22 01:51:31 +12:00
parent c32d1740e3
commit b439ad1511
58 changed files with 173 additions and 139164 deletions

View file

@ -9,17 +9,16 @@ namespace MPN00BS
public partial class LoadingWindow : Window
{
private void OnClientExit()
public void OnServerStarted()
{
Dispatcher.UIThread.InvokeAsync(() =>
{
this.Hide();
new SystemTrayIcon().Show();
this.Close();
});
}
public void OnServerStarted()
{
ServerStarter.StartHorseIsleClient(OnClientExit, "127.0.0.1", 12321);
}
public void OnNoUsersFound()
{
Dispatcher.UIThread.InvokeAsync(() =>
@ -33,10 +32,6 @@ namespace MPN00BS
Dispatcher.UIThread.InvokeAsync(() =>
{
startupProgress.Value++;
if (startupProgress.Value >= startupProgress.Maximum)
{
this.Hide();
}
});
}
public LoadingWindow()