void Build()
        {
            var mainVBox = new VBox();

            mainVBox.Spacing = 12;

            // .NET Core command line section.
            var titleLabel = new Label();

            titleLabel.Markup = GetBoldMarkup(GettextCatalog.GetString("Samsung .NET Core Debugger"));
            mainVBox.PackStart(titleLabel);

            var debuggerVBox = new VBox();

            debuggerVBox.Spacing    = 6;
            debuggerVBox.MarginLeft = 24;
            mainVBox.PackStart(debuggerVBox);

            var debuggerFoundHBox = new HBox();

            debuggerFoundHBox.Spacing = 6;
            debuggerVBox.PackStart(debuggerFoundHBox, false, false);

            debuggerFoundIcon = new ImageView();
            debuggerFoundHBox.PackStart(debuggerFoundIcon, false, false);

            debuggerFoundLabel = new Label();
            debuggerFoundHBox.PackStart(debuggerFoundLabel, true, true);

            var locationBox = new HBox();

            locationBox.Spacing = 6;
            debuggerVBox.PackStart(locationBox, false, false);

            var locationLabel = new Label();

            locationLabel.Text = GettextCatalog.GetString("Location:");
            locationBox.PackStart(locationLabel, false, false);

            locationFileSelector = new CustomFileSelector();
            locationBox.PackStart(locationFileSelector, true, true);

            Content = mainVBox;
        }
        void Build()
        {
            var mainVBox = new VBox();

            mainVBox.Spacing = 12;

            // .NET Core command line section.
            var titleLabel = new Label();

            titleLabel.Markup = GetBoldMarkup(GettextCatalog.GetString(".NET Core Command Line"));
            mainVBox.PackStart(titleLabel);

            var commandLineVBox = new VBox();

            commandLineVBox.Spacing    = 6;
            commandLineVBox.MarginLeft = 24;
            mainVBox.PackStart(commandLineVBox);

            var commandLineFoundHBox = new HBox();

            commandLineFoundHBox.Spacing = 6;
            commandLineVBox.PackStart(commandLineFoundHBox, false, false);

            commandLineFoundIcon = new ImageView();
            commandLineFoundHBox.PackStart(commandLineFoundIcon, false, false);

            commandLineFoundLabel = new Label();
            commandLineFoundHBox.PackStart(commandLineFoundLabel, true, true);

            var locationBox = new HBox();

            locationBox.Spacing = 6;
            commandLineVBox.PackStart(locationBox, false, false);

            var locationLabel = new Label();

            locationLabel.Text = GettextCatalog.GetString("Location:");
            locationBox.PackStart(locationLabel, false, false);

            locationFileSelector = new CustomFileSelector();
            locationFileSelector.TextEntry.SetCommonAccessibilityAttributes(
                "DotNetCoreSdkLocationWidget.Location",
                locationLabel.Text,
                GettextCatalog.GetString("Enter the .NET Core SDK location"));
            locationFileSelector.BrowseButton.SetCommonAccessibilityAttributes(
                "DotNetCoreSdkLocationWidget.Browse",
                GettextCatalog.GetString("Browse"),
                GettextCatalog.GetString("Select a folder for the .NET Core SDK location"));
            locationBox.PackStart(locationFileSelector, true, true);

            // .NET Core SDK section.
            var sdkVersionsTitleLabel = new Label();

            sdkVersionsTitleLabel.Markup = GetBoldMarkup(GettextCatalog.GetString(".NET Core SDK"));
            mainVBox.PackStart(sdkVersionsTitleLabel);

            var sdkVersionsVBox = new VBox();

            sdkVersionsVBox.Spacing    = 6;
            sdkVersionsVBox.MarginLeft = 24;
            mainVBox.PackStart(sdkVersionsVBox, true, true);

            var sdkFoundHBox = new HBox();

            sdkFoundHBox.Spacing      = 6;
            sdkFoundHBox.MarginBottom = 6;
            sdkVersionsVBox.PackStart(sdkFoundHBox, false, false);

            sdkFoundIcon = new ImageView();
            sdkFoundHBox.PackStart(sdkFoundIcon, false, false);

            sdkFoundLabel = new Label();
            sdkFoundHBox.PackStart(sdkFoundLabel, false, false);

            sdkVersionsListBox = new ListBox();
            sdkVersionsVBox.PackStart(sdkVersionsListBox, true, true);

            // .NET Core runtime section
            var runtimeVersionsTitleLabel = new Label();

            runtimeVersionsTitleLabel.Markup = GetBoldMarkup(GettextCatalog.GetString(".NET Core Runtime"));
            mainVBox.PackStart(runtimeVersionsTitleLabel);

            var runtimeVersionsVBox = new VBox();

            runtimeVersionsVBox.Spacing    = 6;
            runtimeVersionsVBox.MarginLeft = 24;
            mainVBox.PackStart(runtimeVersionsVBox, true, true);

            var runtimeFoundHBox = new HBox();

            runtimeFoundHBox.Spacing      = 6;
            runtimeFoundHBox.MarginBottom = 6;
            runtimeVersionsVBox.PackStart(runtimeFoundHBox, false, false);

            runtimeFoundIcon = new ImageView();
            runtimeFoundHBox.PackStart(runtimeFoundIcon, false, false);

            runtimeFoundLabel = new Label();
            runtimeFoundHBox.PackStart(runtimeFoundLabel, false, false);

            runtimeVersionsListBox = new ListBox();
            runtimeVersionsVBox.PackStart(runtimeVersionsListBox, true, true);

            Content = mainVBox;
        }
Esempio n. 3
0
        void Build()
        {
            var mainVBox = new VBox();

            mainVBox.Spacing = 12;

            // .NET Core command line section.
            var titleLabel = new Label();

            titleLabel.Markup = GetBoldMarkup(GettextCatalog.GetString(".NET Core Command Line"));
            mainVBox.PackStart(titleLabel);

            var commandLineVBox = new VBox();

            commandLineVBox.Spacing    = 6;
            commandLineVBox.MarginLeft = 24;
            mainVBox.PackStart(commandLineVBox);

            var commandLineFoundHBox = new HBox();

            commandLineFoundHBox.Spacing = 6;
            commandLineVBox.PackStart(commandLineFoundHBox, false, false);

            commandLineFoundIcon = new ImageView();
            commandLineFoundHBox.PackStart(commandLineFoundIcon, false, false);

            commandLineFoundLabel = new Label();
            commandLineFoundHBox.PackStart(commandLineFoundLabel, true, true);

            var locationBox = new HBox();

            locationBox.Spacing = 6;
            commandLineVBox.PackStart(locationBox, false, false);

            var locationLabel = new Label();

            locationLabel.Text = GettextCatalog.GetString("Location:");
            locationBox.PackStart(locationLabel, false, false);

            locationFileSelector = new CustomFileSelector();
            locationBox.PackStart(locationFileSelector, true, true);

            // .NET Core SDK section.
            var sdkVersionsTitleLabel = new Label();

            sdkVersionsTitleLabel.Markup = GetBoldMarkup(GettextCatalog.GetString(".NET Core SDK"));
            mainVBox.PackStart(sdkVersionsTitleLabel);

            var sdkVersionsVBox = new VBox();

            sdkVersionsVBox.Spacing    = 6;
            sdkVersionsVBox.MarginLeft = 24;
            mainVBox.PackStart(sdkVersionsVBox, true, true);

            var sdkFoundHBox = new HBox();

            sdkFoundHBox.Spacing      = 6;
            sdkFoundHBox.MarginBottom = 6;
            sdkVersionsVBox.PackStart(sdkFoundHBox, false, false);

            sdkFoundIcon = new ImageView();
            sdkFoundHBox.PackStart(sdkFoundIcon, false, false);

            sdkFoundLabel = new Label();
            sdkFoundHBox.PackStart(sdkFoundLabel, false, false);

            sdkVersionsListBox = new ListBox();
            sdkVersionsVBox.PackStart(sdkVersionsListBox, true, true);

            // .NET Core runtime section
            var runtimeVersionsTitleLabel = new Label();

            runtimeVersionsTitleLabel.Markup = GetBoldMarkup(GettextCatalog.GetString(".NET Core Runtime"));
            mainVBox.PackStart(runtimeVersionsTitleLabel);

            var runtimeVersionsVBox = new VBox();

            runtimeVersionsVBox.Spacing    = 6;
            runtimeVersionsVBox.MarginLeft = 24;
            mainVBox.PackStart(runtimeVersionsVBox, true, true);

            var runtimeFoundHBox = new HBox();

            runtimeFoundHBox.Spacing      = 6;
            runtimeFoundHBox.MarginBottom = 6;
            runtimeVersionsVBox.PackStart(runtimeFoundHBox, false, false);

            runtimeFoundIcon = new ImageView();
            runtimeFoundHBox.PackStart(runtimeFoundIcon, false, false);

            runtimeFoundLabel = new Label();
            runtimeFoundHBox.PackStart(runtimeFoundLabel, false, false);

            runtimeVersionsListBox = new ListBox();
            runtimeVersionsVBox.PackStart(runtimeVersionsListBox, true, true);

            Content = mainVBox;
        }