Exemplo n.º 1
0
        private void combo_SelectionChangeCommitted(object sender, System.EventArgs e)
        {
            if (this.textLog == null)
            {
                return;
            }
            ComboBoxBaseDataBound c = sender as ComboBoxBaseDataBound;

            this.textLog.Text += c.Name + "'s SelectionChangeCommitted. New index is:" + c.SelectedIndex + "\r\n";
        }
Exemplo n.º 2
0
        private void combo_Validating(object sender, System.ComponentModel.CancelEventArgs e)
        {
            if (this.textLog == null)
            {
                return;
            }
            ComboBoxBaseDataBound c = sender as ComboBoxBaseDataBound;

            if (c.SelectedItem != null)
            {
                this.textLog.Text += c.Name + "is validating the new entry:" + c.SelectedItem.ToString() + "\r\n";
            }
            else
            {
                this.textLog.Text += c.Name + "is validating the new entry:" + c.Text + "\r\n";
            }
        }
Exemplo n.º 3
0
        private void combo_Validated(object sender, System.EventArgs e)
        {
            if (this.textLog == null)
            {
                return;
            }

            ComboBoxBaseDataBound c = sender as ComboBoxBaseDataBound;

            if (c.SelectedItem != null)
            {
                this.textLog.Text += c.Name + "has validated the new entry. New entry is:" + c.SelectedItem.ToString() + "\r\n";
            }
            else
            {
                this.textLog.Text += c.Name + "has validated the new entry. New entry is:" + c.Text + "\r\n";
            }
        }