Beispiel #1
0
        //entry point to start Console UI
        static void Main(string[] args)
        {
            DisableConsoleResize();
            LoginMenu lm = new LoginMenu();

            lm.Login();
        }
Beispiel #2
0
        public void MenuUser()
        {
            int ch = 0;

            lm.PrintStars();
            Console.WriteLine("User Menu");
            lm.PrintStars();
            Console.WriteLine("1.Search Product");
            Console.WriteLine("2.Add Product to Shopping Cart");
            Console.WriteLine("3.Make Payment");
            Console.WriteLine("4.Provide Comments for Product");
            Console.WriteLine("5.Back");
            lm.PrintStars();
            Console.WriteLine("Enter Choice for User Operation");
            ch = int.Parse(Console.ReadLine());
            switch (ch)
            {
            case 1:
                SearchProduct();
                break;

            case 2:
                AddCart();
                break;

            case 3:
                MakePayment();
                break;

            case 4:
                ProvideComments();
                break;

            case 5:
                Console.Clear();
                lm.Login();
                break;

            default:
                lm.PrintStars();
                Console.WriteLine("Invalid Choice");
                lm.PrintStars();
                break;
            }
        }