public GuiManager(Action exit) { this.elements = new Empty <IGuiElement>(); this.menuFactory = new ConcreteGuiElementFactory(); StartWindow(exit); }
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); }