public static void ExtensionObjectMenu() { int ticketSelection = MenuUI.PrintTicketSelectionMenu(); switch (ticketSelection) { case 1: ExtensionObjectAddTicketServices(new Extension_Object.PaperTicket()); break; case 2: ExtensionObjectAddTicketServices(new Extension_Object.ElectronicTicket()); break; case 3: Environment.Exit(0); break; } }
public static void DecoratorMenu() { int ticketSelection = MenuUI.PrintTicketSelectionMenu(); switch (ticketSelection) { case 1: DecoratorAddTicketServices(new Decorator.PaperTicket()); break; case 2: DecoratorAddTicketServices(new Decorator.ElectronicTicket()); break; case 3: Environment.Exit(0); break; } }