Die scheiße Terminiert \o/
This commit is contained in:
@@ -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 ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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 ();
|
||||||
|
|||||||
Reference in New Issue
Block a user