Die scheiße Terminiert \o/

This commit is contained in:
2014-05-13 19:31:25 +02:00
parent f8c1993c9f
commit 3bdf126d12
2 changed files with 3 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ namespace WorldOfPeacecraft
private const int ChatWidth = 300; private const int ChatWidth = 300;
private const int OnlinePlayerWidth = 150; private const int OnlinePlayerWidth = 150;
private IBackend Backend; private IBackend Backend;
public Form MainForm { get; set; }
private MapPanel MapPanel; private MapPanel MapPanel;
private ChatPanel ChatPanel; private ChatPanel ChatPanel;
@@ -78,6 +79,7 @@ namespace WorldOfPeacecraft
protected override void OnClosing (System.ComponentModel.CancelEventArgs e) protected override void OnClosing (System.ComponentModel.CancelEventArgs e)
{ {
base.OnClosing (e); base.OnClosing (e);
MainForm.Close();
Backend.Stop (); Backend.Stop ();
} }

View File

@@ -20,6 +20,7 @@ namespace WorldOfPeacecraft
public SplashScreen (Gui gui, IBackend backend) public SplashScreen (Gui gui, IBackend backend)
{ {
this.gui = gui; this.gui = gui;
gui.MainForm = this;
this.backend = backend; this.backend = backend;
Thread t = new Thread (ThreadEntry); Thread t = new Thread (ThreadEntry);
t.Start (); t.Start ();