Exemple #1
0
        protected void OnCheckBoxCheckedChanged(object sender, EventArgs e)
        {
            string ListText = GetCSVText(true);

            if (ListText == "" && _BlankText != null)
            {
                ListText = _BlankText;
            }
            // The DropDownList style seems to require that the text
            // part of the "textbox" should match a single item.
            if (DropDownStyle != ComboBoxStyle.DropDownList)
            {
                Text = ListText;
            }
            // This refreshes the Text of the first item (which is not visible)
            else if (DataSource == null)
            {
                Items[0] = ListText;
                // Keep the hidden item and first checkbox item in
                // sync in order to ensure the Synchronise process
                // can match the items.
                CheckBoxItems[0].ComboBoxItem = ListText;
            }

            CheckBoxCheckedChanged?.Invoke(sender, e);
        }
Exemple #2
0
 private void CheckedChanged()
 {
     UpdateText();
     CheckBoxCheckedChanged?.Invoke(this, EventArgs.Empty);
 }
Exemple #3
0
 protected void OnCheckBoxCheckedChanged(object sender, EventArgs e)
 {
     CheckBoxCheckedChanged?.Invoke(sender, e);
 }