Exemplo n.º 1
0
 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();
 }
Exemplo n.º 3
0
 public MenuPrinter(IGraphicUserInterface gui)
 {
     this.gui = gui;
 }