/// <summary> /// The message box will destroy itself inside MyGUI when it is closed. /// This function will hear that event and broadcast it to the event /// held by this class. It will also destroy the wrappers. /// </summary> /// <param name="source">The source widget.</param> /// <param name="args">The event args.</param> private void messageBoxClosed(Message source, EventArgs args) { if (MessageBoxResult != null) { MessageBoxResult.Invoke(source, args); } }