예제 #1
0
        private void Utensilio_Load(object sender, EventArgs e)
        {
            comboBox1.DataSource    = itens.grupoUtensilio();
            comboBox1.DisplayMember = "nome";
            comboBox1.ValueMember   = "id";
            comboBox1.Text          = "";
            comboBox2.DataSource    = null;

            dataGridView1.DataSource = itens.utensilios(festa.pegarFesta(AutenticacaoCliente.pegarId()));
        }
예제 #2
0
        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;
        }