Example #1
0
        private void SetCombobox()
        {
            comboBoxWillQos.DropDownStyle = ComboBoxStyle.DropDownList;

            foreach (string name in StaticResources.GetNameEnumerable())
            {
                comboBoxWillQos.Items.Add(name);
            }

            comboBoxWillQos.SelectedIndex = 0;
            this.Focus();
        }
Example #2
0
        private void InitComboBox()
        {
            comboBoxValueType.Items.Add(typeof(string));
            comboBoxValueType.Items.Add(typeof(int));
            comboBoxValueType.Items.Add(typeof(float));
            comboBoxValueType.DropDownStyle = ComboBoxStyle.DropDownList;
            comboBoxValueType.SelectedIndex = 0;

            comboBoxPubQos.DropDownStyle = ComboBoxStyle.DropDownList;
            foreach (string name in StaticResources.GetNameEnumerable())
            {
                comboBoxPubQos.Items.Add(name);
            }
            comboBoxPubQos.SelectedIndex = 0;
            this.Focus();
        }