From 3bdf126d12b0def9ce4f67580ed1b6cc93f5925b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Tue, 13 May 2014 19:31:25 +0200 Subject: [PATCH] =?UTF-8?q?Die=20schei=C3=9Fe=20Terminiert=20\o/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Gui/Gui.cs | 2 ++ src/Gui/Splashscreen.cs | 1 + 2 files changed, 3 insertions(+) diff --git a/src/Gui/Gui.cs b/src/Gui/Gui.cs index f2fb30c..737e281 100644 --- a/src/Gui/Gui.cs +++ b/src/Gui/Gui.cs @@ -11,6 +11,7 @@ namespace WorldOfPeacecraft private const int ChatWidth = 300; private const int OnlinePlayerWidth = 150; private IBackend Backend; + public Form MainForm { get; set; } private MapPanel MapPanel; private ChatPanel ChatPanel; @@ -78,6 +79,7 @@ namespace WorldOfPeacecraft protected override void OnClosing (System.ComponentModel.CancelEventArgs e) { base.OnClosing (e); + MainForm.Close(); Backend.Stop (); } diff --git a/src/Gui/Splashscreen.cs b/src/Gui/Splashscreen.cs index a8eb669..c40e2b1 100644 --- a/src/Gui/Splashscreen.cs +++ b/src/Gui/Splashscreen.cs @@ -20,6 +20,7 @@ namespace WorldOfPeacecraft public SplashScreen (Gui gui, IBackend backend) { this.gui = gui; + gui.MainForm = this; this.backend = backend; Thread t = new Thread (ThreadEntry); t.Start ();