Terminate application after window close
This commit is contained in:
@@ -42,6 +42,12 @@ namespace WorldOfPeacecraft
|
||||
this.PerformLayout();
|
||||
}
|
||||
|
||||
protected override void OnClosing (System.ComponentModel.CancelEventArgs e)
|
||||
{
|
||||
base.OnClosing (e);
|
||||
Backend.Stop ();
|
||||
}
|
||||
|
||||
public void DoPaint (object source, PaintEventArgs args)
|
||||
{
|
||||
BufferedGraphics buffer = BufferedGraphicsManager.Current.Allocate (Board.CreateGraphics (), Board.DisplayRectangle);
|
||||
|
||||
@@ -4,5 +4,7 @@ namespace WorldOfPeacecraft
|
||||
public interface IBackend
|
||||
{
|
||||
ITile[,] GetMap();
|
||||
|
||||
void Stop();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user