Exemple #1
0
        protected override void GetUserInput()
        {
            // Get user input
            System.IO.TextReader tIn = Console.In;

            string input = tIn.ReadLine();

            // convert to lower case
            input = input.ToLower();


            switch (input)
            {
            case "a":
                CustomerDB customerDB = new CustomerDB();
                Customer   customer   = customerDB.FindCustomerById(1);
                Console.WriteLine(customer.Id);
                Console.WriteLine(customer.FullName);
                Console.WriteLine(customer.Username);
                break;

            case "b":
                Console.Out.WriteLine("Option B chosen");
                break;

            default:
                break;
            }
        }