Example #1
0
 /// <summary>
 ///     Displays the <see cref="PromptBox" /> window to the user and returns the <see cref="MessageResult" /> from the
 ///     button clicked.
 /// </summary>
 /// <param name="prompt">The prompt.</param>
 /// <returns>MessageResult.</returns>
 public static MessageResult ShowPrompt(PromptBox prompt)
 {
     prompt.ShowDialog();
     return(prompt.result);
 }
Example #2
0
 /// <summary>
 ///     Displays the <see cref="PromptBox" /> window to the user and returns the <see cref="MessageResult" /> from the
 ///     button clicked.
 /// </summary>
 /// <param name="prompt">The prompt.</param>
 /// <returns>MessageResult.</returns>
 public static MessageResult ShowPrompt(PromptBox prompt)
 {
     prompt.ShowDialog();
     return prompt.result;
 }