public void ShowMenuWithResult() { ShowMenu(); string input; while (!string.Equals(input = Console.ReadLine().ToLower(), "b")) { if (Parent == null && string.Equals(input, "q")) { //退出程序 break; } int index = -1; if (int.TryParse(input, out index)) { HelperBase son = SonList[index]; if (son != null) { son.Execute(); } } ShowMenu(); } }