public Menu(IGraphicUserInterface gui) { this.gui = gui; this.currentState = MenuStates.Initialized; this.menuPrinter = new MenuPrinter(gui); this.menuValidator = new MenuValidator(); this.isStarted = false; this.adressBook = new AdressBook(); }
public MenuStateMachine(IGraphicUserInterface gui) { this.gui = gui; this.currentState = MenuStateMachineState.Initialized; this.menuPrinter = new MenuPrinter(gui); this.menuTransitionValidator = new MenuTransitionValidator(); this.isStarted = false; this.beverageFactory = new BeverageFactory(); }
public MenuPrinter(IGraphicUserInterface gui) { this.gui = gui; }