protected void Build(GuiElementEvent guiElementEvent) { if (guiElementEvent.Target != this) { return; } SetWidth(290).SetHeight(140).SetPadding(5, 5, 5, 5); AddChild( new HBox() .AddChild(new Label(100, 20, __("details.firstName"))) .AddChild(FirstName = new TextField(190, 20).OnChange(CommitChange)) ); AddChild( new HBox() .AddChild(new Label(100, 20, __("details.lastName"))) .AddChild(LastName = new TextField(190, 20).OnChange(CommitChange)) ); AddChild( new HBox() .AddChild(new Label(100, 20, __("details.phone"))) .AddChild(Phone = new TextField(190, 20).OnChange(CommitChange)) ); AddChild( new HBox() .AddChild(new Label(100, 20, __("details.email"))) .AddChild(Email = new TextField(190, 20).OnChange(CommitChange)) ); }
protected void Build(GuiElementEvent guiElementEvent) { if (guiElementEvent.Target != this) { return; } SetWidth(290).SetHeight(290).SetPadding(5, 5, 5, 5); AddChild(new Label(200, 20, __("list.headline"))); AddChild( new Button(100, 20, "Neu") .OnMouseDown(e => { Debug.Log("neu clicked"); SigNewContactClicked.Dispatch(); }) ); AddChild( ScrollView = new ScrollView(290, 250) .AddChild(ContactsContainer = new VBox().SetWidth(290)) ); }