public ListPropertyControl(String propertyId, String label, String currentValue,
                                   String defaultValue, String helpText, String filterText, String categoryText, String propertyType)
        {
            InitializeComponent();

            this.label       = label;
            this.propertyId  = propertyId;
            this.label1.Text = label;
            ListPropertyValues.addPropertyToListboxData(propertyId, propertyType);
            this.availableValues = ListPropertyValues.getListBoxLabels(propertyId);
            this.comboBox1.BeginUpdate();
            foreach (String value in availableValues)
            {
                this.comboBox1.Items.Add(value);
            }
            this.comboBox1.EndUpdate();

            this.originalValue           = ListPropertyValues.getLabelForInvariantItem(propertyId, currentValue);
            this.comboBox1.Text          = this.originalValue;
            this.comboBox1.SelectedIndex = availableValues.IndexOf(this.originalValue);

            this.defaultValue = ListPropertyValues.getLabelForInvariantItem(propertyId, defaultValue);
            this.toolTip1.SetToolTip(this.comboBox1, helpText);
            this.toolTip1.SetToolTip(this.label1, helpText);

            this.filter = new PropertyFilter(filterText, categoryText, propertyId, this.label);
            this.comboBox1.SelectedIndexChanged += textChanged;
        }
Exemple #2
0
        public BooleanPropertyControl(String propertyId, String label, Boolean value, Boolean defaultValue, String helpText, String filterText, String categoryText)
        {
            InitializeComponent();

            this.label             = label;
            this.propertyId        = propertyId;
            this.originalValue     = value;
            this.checkBox1.Text    = label;
            this.checkBox1.Checked = value;
            this.defaultValue      = defaultValue;
            this.toolTip1.SetToolTip(this.checkBox1, helpText);

            this.filter = new PropertyFilter(filterText, categoryText, propertyId, this.label);
        }
Exemple #3
0
        public StringPropertyControl(String propertyId, String label, String currentValue, String defaultValue, String helpText, String filterText, String categoryText)
        {
            InitializeComponent();

            this.label         = label;
            this.propertyId    = propertyId;
            this.label1.Text   = label;
            this.originalValue = currentValue;
            this.textBox1.Text = currentValue;
            this.defaultValue  = defaultValue;
            this.toolTip1.SetToolTip(this.textBox1, helpText);
            this.toolTip1.SetToolTip(this.label1, helpText);

            this.filter = new PropertyFilter(filterText, categoryText, propertyId, this.label);
        }