Esempio n. 1
0
        private static string formatMenuActionListToString(MenuActionList actionElement)
        {
            string formattedEnumToString = "";

            string temp = actionElement.ToString();

            formattedEnumToString = temp.Replace("_", " ");

            return(formattedEnumToString);
        }
Esempio n. 2
0
        private static string menuActionListToStringForMenu(MenuActionList actionElement)
        {
            string enumToString = "";

            enumToString += (int)actionElement;
            enumToString += "- ";
            enumToString += formatMenuActionListToString(actionElement);
            enumToString += "\n";

            return(enumToString);
        }
Esempio n. 3
0
        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]();
            }
        }