Exemplo n.º 1
0
 // Constructor
 public MainMenu()
 {
     // Creating the submenus.
     ownerMenu     = new OwnerMenu();
     franchiseMenu = new FranchiseMenu();
     customerMenu  = new CustomerMenu();
 }
Exemplo n.º 2
0
        public static void changeMenu()
        {
            Console.WriteLine(" Enter an option:");
            string input = Console.ReadLine();

            switch (input)
            {
            case "1":
                OwnerMenu.RunOwner();
                break;

            case "2":
                store = FranchiseMenu.SelectFranchisee();
                FranchiseMenu.RunFranchise();
                break;

            case "3":
                CustomerMenu.RunCustomer();
                break;

            case "4":
                Environment.Exit(0);
                return;

            default:
                Console.WriteLine("Invaild Input");
                changeMenu();
                break;
            }
        }