Example #1
0
 /// <summary>
 /// Shows a prompt where the user can enter a string
 /// </summary>
 /// <param name="title">The title the user should see when this prompt shows up</param>
 /// <param name="textboxString">The textbox text, if you want to set that.</param>
 /// <returns>The input string</returns>
 public static string Show(string title, string textboxString)
 {
     newPrompt = new Prompt(title, textboxString);
     newPrompt.ShowDialog();
     return(strReturnValue);
 }
Example #2
0
 /// <summary>
 /// Shows a prompt where the user can enter a string
 /// </summary>
 /// <param name="title">The title the user should see when this prompt shows up</param>
 /// <returns>The input string</returns>
 public static string Show(string title)
 {
     newPrompt = new Prompt(title);
     newPrompt.ShowDialog();
     return(strReturnValue);
 }