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); } }