Canguro.Controller.CommandServices.GetSingle C# (CSharp) Method

GetSingle() public method

Method to get a float value from the user
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); }
        }