/*! \brief Close window in response to an event. */ protected virtual void OnClose(CloseEventArgs e) { if (Closing != null) { Closing(this, e); } Wimp.CloseWindow(e.CloseWimpBlock.WindowHandle); if (Closed != null) { Closed(this, e); } }