/// <summary>
        /// This method prompts the user options and takes a UserFunctionChoice input from user
        /// </summary>
        /// <returns>Returns the Users Choice of Action </returns>
        private static TelephoneBillSystemChoices PromptUsersChoice()
        {
            Console.Write(ConfigurationManager.AppSettings.Get("UserDisplayOptions"));

            TelephoneBillSystemChoices userChoice = UserInputGathering.GetUsersChoice();

            return(userChoice);
        }
示例#2
0
        /// <summary>
        /// This method prompts the user options and takes a UserFunctionChoice input from user
        /// </summary>
        /// <returns>Returns the Users Choice of Action </returns>
        private static UsersFunctionChoices PromptUsersChoice()
        {
            Console.Write("\nPlease enter the action to perform " +
                          "\n1) Print Triangular Output using String" +
                          "\n2) Print Triangular Output using Start, End Characters" +
                          "\n3) Count Distinct String Characters(Case Sensitive)" +
                          "\n4) Count Distinct String Characters(Case InSensitive)" +
                          "\n5) Print *** Triagle" +
                          "\n6) End Application\n\nPlease enter your choice : ");

            var userChoice = UserInputGathering.GetUsersChoice();

            return(userChoice);
        }