/// <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); }
/// <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); }
public static int ShowMinutes(string title, string description) { newPrompt = new RemindMePrompt(title, description, PromptReason.MINUTES); newPrompt.ShowDialog(); if (minutes < 0) { minutes = 0; } return(minutes); }
/// <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); }