public FormVSQtSettings()
        {
            InitializeComponent();

            foreach (var control in Controls)
            {
                ComboBox comboBox = control as ComboBox;
                if (comboBox != null)
                {
                    comboBox.Resize += (sender, e) =>
                    {
                        if (!comboBox.Focused)
                        {
                            comboBox.SelectionLength = 0;
                        }
                    };
                }
            }

            versionManager = QtVersionManager.The();

            this.Text = SR.GetString("VSQtOptionsButtonText");
            listView.Columns.Add(SR.GetString("BuildOptionsPage_Name"), 100, HorizontalAlignment.Left);
            listView.Columns.Add(SR.GetString("BuildOptionsPage_Path"), 260, HorizontalAlignment.Left);
            addButton.Text               = SR.GetString(SR.Add);
            deleteButton.Text            = SR.GetString(SR.Delete);
            labelX86.Text                = SR.GetString("BuildOptionsPage_DefaultQtX86Version");
            labelX64.Text                = SR.GetString("BuildOptionsPage_DefaultQtX64Version");
            labelWinCE.Text              = SR.GetString("BuildOptionsPage_WinCEQtVersion");
            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");

#if !ENABLE_WINCE
            // Just hide the Windows CE specific combobox and occupy the released screen space.
            labelWinCE.Hide();
            winCECombo.Hide();
            tableLayoutPanel2.RowCount -= 1;
            tableLayoutPanel2.RowStyles.RemoveAt(tableLayoutPanel2.RowCount);
#endif

            SetupVersionComboBox(defaultX86Combo, null, new VIBoolPredicate(isDesktopQt));
            SetupVersionComboBox(defaultX64Combo, null, new VIBoolPredicate(isDesktopQt));
            SetupWinCEVersionComboBox(null);
            UpdateListBox();

            vsQtSettings = new VSQtSettings();
            optionsPropertyGrid.SelectedObject = vsQtSettings;

            this.KeyPress += new KeyPressEventHandler(this.FormQtVersions_KeyPress);
            this.Shown    += new EventHandler(FormQtVersions_Shown);
        }
        public FormVSQtSettings()
        {
            InitializeComponent();
            versionManager = QtVersionManager.The();

            this.Text = SR.GetString("VSQtOptionsButtonText");
            listView.Columns.Add(SR.GetString("BuildOptionsPage_Name"), 100, HorizontalAlignment.Left);
            listView.Columns.Add(SR.GetString("BuildOptionsPage_Path"), 180, HorizontalAlignment.Left);
            addButton.Text               = SR.GetString(SR.Add);
            deleteButton.Text            = SR.GetString(SR.Delete);
            label2.Text                  = SR.GetString("BuildOptionsPage_DefaultQtVersion");
            label3.Text                  = SR.GetString("BuildOptionsPage_WinCEQtVersion");
            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");

#if !ENABLE_WINCE
            // Just hide the Windows CE specific combobox and occupy the released screen space.
            int distance = label3.Top - label2.Top;
            label3.Hide();
            winCECombo.Hide();
            label2.Top       = label3.Top;
            defaultCombo.Top = winCECombo.Top;
            System.Drawing.Rectangle rect = listView.Bounds;
            rect.Height    += distance;
            listView.Bounds = rect;
#endif

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

            vsQtSettings = new VSQtSettings();
            optionsPropertyGrid.SelectedObject = vsQtSettings;

            this.KeyPress += new KeyPressEventHandler(this.FormQtVersions_KeyPress);
            this.Shown    += new EventHandler(FormQtVersions_Shown);
        }
        public FormVSQtSettings()
        {
            InitializeComponent();

            foreach (var control in Controls)
            {
                ComboBox comboBox = control as ComboBox;
                if (comboBox != null)
                {
                    comboBox.Resize += (sender, e) =>
                    {
                        if (!comboBox.Focused)
                            comboBox.SelectionLength = 0;
                    };
                }
            }

            versionManager = QtVersionManager.The();

            this.Text = SR.GetString("VSQtOptionsButtonText");
            listView.Columns.Add(SR.GetString("BuildOptionsPage_Name"), 100, HorizontalAlignment.Left);
            listView.Columns.Add(SR.GetString("BuildOptionsPage_Path"), 260, HorizontalAlignment.Left);
            addButton.Text = SR.GetString(SR.Add);
            deleteButton.Text = SR.GetString(SR.Delete);
            labelX86.Text = SR.GetString("BuildOptionsPage_DefaultQtX86Version");
            labelX64.Text = SR.GetString("BuildOptionsPage_DefaultQtX64Version");
            labelWinCE.Text = SR.GetString("BuildOptionsPage_WinCEQtVersion");
            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");

            #if !ENABLE_WINCE
            // Just hide the Windows CE specific combobox and occupy the released screen space.
            labelWinCE.Hide();
            winCECombo.Hide();
            tableLayoutPanel2.RowCount -= 1;
            tableLayoutPanel2.RowStyles.RemoveAt(tableLayoutPanel2.RowCount);
            #endif

            SetupVersionComboBox(defaultX86Combo, null, new VIBoolPredicate(isDesktopQt));
            SetupVersionComboBox(defaultX64Combo, null, new VIBoolPredicate(isDesktopQt));
            SetupWinCEVersionComboBox(null);
            UpdateListBox();

            vsQtSettings = new VSQtSettings();
            optionsPropertyGrid.SelectedObject = vsQtSettings;

            this.KeyPress += new KeyPressEventHandler(this.FormQtVersions_KeyPress);
            this.Shown += new EventHandler(FormQtVersions_Shown);
        }
        public FormVSQtSettings()
        {
            InitializeComponent();
            versionManager = QtVersionManager.The();

            this.Text = SR.GetString("VSQtOptionsButtonText");
            listView.Columns.Add(SR.GetString("BuildOptionsPage_Name"), 100, HorizontalAlignment.Left);
            listView.Columns.Add(SR.GetString("BuildOptionsPage_Path"), 180, HorizontalAlignment.Left);
            addButton.Text = SR.GetString(SR.Add);
            deleteButton.Text = SR.GetString(SR.Delete);
            label2.Text = SR.GetString("BuildOptionsPage_DefaultQtVersion");
            label3.Text = SR.GetString("BuildOptionsPage_WinCEQtVersion");
            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");

            #if !ENABLE_WINCE
            // Just hide the Windows CE specific combobox and occupy the released screen space.
            int distance = label3.Top - label2.Top;
            label3.Hide();
            winCECombo.Hide();
            label2.Top = label3.Top;
            defaultCombo.Top = winCECombo.Top;
            System.Drawing.Rectangle rect = listView.Bounds;
            rect.Height += distance;
            listView.Bounds = rect;
            #endif

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

            vsQtSettings = new VSQtSettings();
            optionsPropertyGrid.SelectedObject = vsQtSettings;

            this.KeyPress += new KeyPressEventHandler(this.FormQtVersions_KeyPress);
            this.Shown += new EventHandler(FormQtVersions_Shown);
        }