private void btnAgregar_Click(object sender, EventArgs e) { agregarStock agregar1 = new agregarStock(productos); agregar1.Show();//esto espera a que se llene el form de agregar dgvStock.DataSource = productos; }
private void btnAgregar_Click(object sender, EventArgs e) { agregarStock agregar1 = new agregarStock(); //agregar1.Show(); //System.Console.WriteLine("OKOKOKKK"); if (DialogResult.OK == agregar1.ShowDialog()) { //dgvStock.AutoGenerateColumns = false; dgvStock.DataSource = mbl.listarMerchandising(); } }