diff options
| author | jp <jp_bruyere@hotmail.com> | 2016-04-14 12:16:50 +0200 |
|---|---|---|
| committer | jp <jp_bruyere@hotmail.com> | 2016-04-14 12:16:50 +0200 |
| commit | 45fb721a432caec62068994ee9a56a4b843bcc03 (patch) | |
| tree | 397399ea92f8a5748856dd4189c782b30ae20d59 /src/GraphicObjects/Window.cs | |
| parent | 7d8177d457e8cdf623888ae01f6496aa67b93548 (diff) | |
| parent | ef53a23fa66932931b7150b489750725d82f77aa (diff) | |
Merge remote-tracking branch 'origin/ottd'
Diffstat (limited to 'src/GraphicObjects/Window.cs')
| -rw-r--r-- | src/GraphicObjects/Window.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/GraphicObjects/Window.cs b/src/GraphicObjects/Window.cs index 2bfa6921..31e5da2f 100644 --- a/src/GraphicObjects/Window.cs +++ b/src/GraphicObjects/Window.cs @@ -28,6 +28,8 @@ namespace Crow Container _contentContainer; Direction currentDirection = Direction.None; + public event EventHandler Closing; + #region CTOR public Window () : base() { @@ -224,6 +226,11 @@ namespace Crow protected void butQuitPress (object sender, MouseButtonEventArgs e) { Interface.CurrentInterface.MouseCursor = XCursor.Default; + close (); + } + + void close(){ + Closing.Raise (this, null); Interface.CurrentInterface.DeleteWidget (this); } |