public void DisplayMenu() { var loadButton = new Button("Load the openApi.json") { X = Pos.Center(), Y = Pos.Percent(20), Clicked = _selectFileCommand.Execute }; var exitButton = new Button("Exit") { X = Pos.Center(), Y = Pos.Bottom(loadButton), Clicked = _exitCommand.Execute }; _window.Add(loadButton, exitButton); }
public void DisplayMenu() { var generateButton = new Button("Generate client") { X = Pos.Center(), Y = Pos.Percent(20), Clicked = _generateCommand.Execute }; var settingsButton = new Button("Change settings") { X = Pos.Center(), Y = Pos.Bottom(generateButton), Clicked = _editSettingCommand.Execute }; var exitButton = new Button("Exit") { X = Pos.Center(), Y = Pos.Bottom(settingsButton), Clicked = _exitCommand.Execute }; _window.Add(generateButton, settingsButton, exitButton); }
public void DisplayMenu() { var fileLabel = new Label(1, 1, $"Selected file: {_file.FileName}"); var checkButton = new Button("Deserialize current file") { X = Pos.Center(), Y = Pos.Percent(20), Clicked = _deserializationCommand.Execute }; var changeSettings = new Button("Change deserialization settings") { X = Pos.Center(), Y = Pos.Bottom(checkButton), Clicked = _editJsonDeserializationSettings.Execute }; var changeFile = new Button("Change file") { X = Pos.Center(), Y = Pos.Bottom(changeSettings), Clicked = _selectFileCommand.Execute }; var exitButton = new Button("Exit") { X = Pos.Center(), Y = Pos.Bottom(changeFile), Clicked = _exitCommand.Execute }; _window.Add(fileLabel, checkButton, changeSettings, changeFile, exitButton); }