public GetSingle ( string prompt ) : float | ||
prompt | string | Text displayed on the SmallPanel, as instructions to the user |
return | float |
public float GetSingle(string prompt)
{
controller.MainFrm.SmallPanel.Start(controller.ModelCommand.Title, prompt, 20, "");
wait(WaitingFor.Text, true);
try
{
return float.Parse((string)waitingObj);
}
catch (FormatException) { return GetSingle(prompt); }
}