private void cboNomeForncedor_SelectedIndexChanged(object sender, EventArgs e) { string nomeF = cboNomeForncedor.Text; Business.FornecedorBusiness business = new Business.FornecedorBusiness(); List <DataBase.Entity.tb_fornecedor> fornecedors = business.ConsultarPorNomeFornecedor(nomeF); dgvFornecedor.DataSource = fornecedors; }
private void textBox1_TextChanged(object sender, EventArgs e) { string nomeF = txtNome.Text; Business.FornecedorBusiness business = new Business.FornecedorBusiness(); List <DataBase.Entity.tb_fornecedor> fornecedor = business.ConsultarPorNomeFornecedor(nomeF); foreach (DataBase.Entity.tb_fornecedor item in fornecedor) { } // foreach (Database.Entity.tb_ranking item in rankingList) //{ // frmRankingItem rank = new frmRankingItem(item, alternada, posicao, user); // panelRanking.Controls.Add(rank); // } }