Пример #1
0
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            int index = 9;

            if (index != comboBox1.SelectedIndex)
            {
                index = comboBox1.SelectedIndex;
                comboBox2.DataSource    = itens.tiposBebida(index + 1);
                comboBox2.DisplayMember = "nome";
                comboBox2.ValueMember   = "id";
                comboBox2.Enabled       = true;
            }
            comboBox2.Text = "";
        }