Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }