private static string formatMenuActionListToString(MenuActionList actionElement) { string formattedEnumToString = ""; string temp = actionElement.ToString(); formattedEnumToString = temp.Replace("_", " "); return(formattedEnumToString); }
private static string menuActionListToStringForMenu(MenuActionList actionElement) { string enumToString = ""; enumToString += (int)actionElement; enumToString += "- "; enumToString += formatMenuActionListToString(actionElement); enumToString += "\n"; return(enumToString); }
private static void dealWithMenuChoice(int choice) { MenuActionList chosenActionByUser = (MenuActionList)choice; if (!choiceInMenu(choice)) { Console.WriteLine(COMMON_MESSAGES["ERR001_INVALID_ENTRY"]); } else { MENU_ACTION_LIST[chosenActionByUser](); } }