public Catalogo(Object ob) { InitializeComponent(); string restricoes = ""; componente = new Componente(this.dgvRecords); List <IngredinteAux> aux = ob as List <IngredinteAux>; foreach (IngredinteAux item in aux) { restricoes += item.Ingrediente + ","; } componente.BindToGridView(getAllProduts(restricoes)); }
private void Button1_Click(object sender, EventArgs e) { //AbrirForm(new ProdutoForm()); ondeEstou = new ProdutoForm(); componente.BindToGridView(getAllProduts()); }