예제 #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>
 /// <returns></returns>
 public static int ShowNumber(string title, string description)
 {
     newPrompt = new RemindMePrompt(title, description, PromptReason.NUMERIC);
     newPrompt.ShowDialog();
     BLIO.Log("RemindMePrompt closed and returned " + intReturnValue);
     return(intReturnValue);
 }
예제 #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></returns>
 public static string ShowText(string title)
 {
     newPrompt = new RemindMePrompt(title, PromptReason.TEXT);
     newPrompt.ShowDialog();
     BLIO.Log("RemindMePrompt closed and returned " + strReturnValue);
     return(strReturnValue);
 }
예제 #3
0
 public static int ShowMinutes(string title, string description)
 {
     newPrompt = new RemindMePrompt(title, description, PromptReason.MINUTES);
     newPrompt.ShowDialog();
     if (minutes < 0)
     {
         minutes = 0;
     }
     return(minutes);
 }
예제 #4
0
 /// <summary>
 /// Shows a prompt where the user can enter a number
 /// </summary>
 /// <param name="title">The title the user should see when this prompt shows up</param>
 /// <returns></returns>
 public static int ShowNumber(string title)
 {
     newPrompt = new RemindMePrompt(title, PromptReason.NUMERIC);
     newPrompt.ShowDialog();
     BLIO.Log("RemindMePrompt closed and returned " + intReturnValue);
     if (intReturnValue < 0)
     {
         intReturnValue = 0;
     }
     return(intReturnValue);
 }