Exemplo n.º 1
0
 public GuiManager(Action exit)
 {
     this.elements    = new Empty <IGuiElement>();
     this.menuFactory = new ConcreteGuiElementFactory();
     StartWindow(exit);
 }
Exemplo n.º 2
0
 public TextBox(string message, Position top_left_corner, Colour color, int width, int height)
 {
     this.LabelFactory       = new ConcreteGuiElementFactory();
     this.NonClickAbleButton = new Button(message, top_left_corner, color, width, height, () => Do.Nothing());
     LabelFactory.Create(6, "", top_left_corner, color, () => Do.Nothing()).Visit(() => Do.Nothing(), (element) => this.inputField = element);
 }