Exemple #1
0
        private void Bebida_Load(object sender, EventArgs e)
        {
            comboBox1.DataSource    = itens.grupoBebidas();
            comboBox1.DisplayMember = "nome";
            comboBox1.ValueMember   = "id";
            comboBox1.Text          = "";
            comboBox2.DataSource    = null;

            dataGridView1.DataSource = itens.bebidas(festa.pegarFesta(AutenticacaoCliente.pegarId()));
        }
        private void CalculadoraSimples_Load(object sender, EventArgs e)
        {
            comboBox1.DataSource    = itens.grupoComidas();
            comboBox1.DisplayMember = "nome";
            comboBox1.ValueMember   = "id";
            comboBox1.Text          = "";

            comboBox2.DataSource    = itens.grupoBebidas();
            comboBox2.DisplayMember = "nome";
            comboBox2.ValueMember   = "id";
            comboBox2.Text          = "";

            comboBox3.DataSource    = itens.grupoUtensilio();
            comboBox3.DisplayMember = "nome";
            comboBox3.ValueMember   = "id";
            comboBox3.Text          = "";

            comboBox6.Enabled = false;
        }