Example #1
0
        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));
        }
Example #2
0
 private void Button1_Click(object sender, EventArgs e)
 {
     //AbrirForm(new ProdutoForm());
     ondeEstou = new ProdutoForm();
     componente.BindToGridView(getAllProduts());
 }