コード例 #1
0
        public FormVSQtSettings()
        {
            InitializeComponent();
            versionManager = QtVersionManager.The();

            columnVersionName.Text       = SR.GetString("BuildOptionsPage_Name");
            columnVersionPath.Text       = SR.GetString("BuildOptionsPage_Path");
            addButton.Text               = SR.GetString("Add");
            deleteButton.Text            = SR.GetString("Delete");
            label2.Text                  = SR.GetString("BuildOptionsPage_DefaultQtVersion");
            okButton.Text                = SR.GetString("OK");
            cancelButton.Text            = SR.GetString("Cancel");
            tabControl1.TabPages[0].Text = SR.GetString("BuildOptionsPage_Title");
            tabControl1.TabPages[1].Text = SR.GetString("QtDefaultSettings");

            SetupDefaultVersionComboBox(null);
            UpdateListBox();

            vsQtSettings = new VSQtSettings();
            optionsPropertyGrid.SelectedObject = vsQtSettings;
            vsQtSettings.PropertyChanged      += OnSettingsChanged;

            KeyPress += FormQtVersions_KeyPress;
            Shown    += FormQtVersions_Shown;
        }
コード例 #2
0
ファイル: FormVSQtSettings.cs プロジェクト: wencan002/vstools
        public FormVSQtSettings()
        {
            InitializeComponent();
            versionManager = QtVersionManager.The();

            listView.Columns.Add(SR.GetString("BuildOptionsPage_Name"), 100,
                                 HorizontalAlignment.Left);
            listView.Columns.Add(SR.GetString("BuildOptionsPage_Path"), 180,
                                 HorizontalAlignment.Left);
            addButton.Text               = SR.GetString("Add");
            deleteButton.Text            = SR.GetString("Delete");
            label2.Text                  = SR.GetString("BuildOptionsPage_DefaultQtVersion");
            okButton.Text                = SR.GetString("OK");
            cancelButton.Text            = SR.GetString("Cancel");
            tabControl1.TabPages[0].Text = SR.GetString("BuildOptionsPage_Title");
            tabControl1.TabPages[1].Text = SR.GetString("QtDefaultSettings");

            SetupDefaultVersionComboBox(null);
            UpdateListBox();
            FormBorderStyle = FormBorderStyle.FixedDialog;

            vsQtSettings = new VSQtSettings();
            optionsPropertyGrid.SelectedObject = vsQtSettings;
            vsQtSettings.PropertyChanged      += OnSettingsChanged;

            KeyPress += FormQtVersions_KeyPress;
            Shown    += FormQtVersions_Shown;
        }