Example #1
0
        public void Run()
        {
            int decision = -1;

            while (decision != 0)
            {
                Console.WriteLine("Welcome to profile management, currently selected profile is {0}", this._profile.Name);
                Console.WriteLine("Please select one of the options below or type 0 to quit");
                Console.WriteLine("Type '1' to change the settings of the profile");
                Console.WriteLine("Type '2' to change the name of the profile");
                Console.WriteLine("Type '0' to exit");
                var optionString = Console.ReadLine();
                decision = CommonOperations.GetOptionValue(optionString, 1, 2);
                if (decision == -1)
                {
                    Console.WriteLine("The input was not valid");
                }
                else
                {
                    DecisionLadder(decision);
                }
            }
        }