/// <summary> /// Raise the Completed event with parameters indicating the current message-box window and the user-response /// it was closed with. /// </summary> /// <remarks> /// This is attached to JhMessageBoxOptions because it's handler needs to exist at the instance-level, /// and the Options object is easily available to the developer. /// </remarks> /// <param name="messageBoxWindow">the message-box window that signaled this event</param> /// <param name="result">the user-response with which the message-box window was dismissed</param> public void SignalThatMessageBoxHasEnded(JhMessageBoxWindow messageBoxWindow, JhDialogResult result) { var args = new MessageBoxCompletedArgs(result: result, error: null, messageBoxWindow: messageBoxWindow); this.Completed(this, args); }
private void OnCompleted(object sender, MessageBoxCompletedArgs e) { _isCompletedEventRaised = true; _theResult = e.Result; }