private void button3_Click(object sender, EventArgs e) { Agregar_Articulo nuevoForm = new Agregar_Articulo(); nuevoForm.opcion = 1; nuevoForm.ShowDialog(); Limpiar(sender, e); ArmarConsulta(sender, e); }
private void dataGridView2_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex < 0) { return; } var row = dataGridView2.CurrentRow.Index; Agregar_Articulo agregar = new Agregar_Articulo(); agregar.opcion = 3; //agregar.inventario = idAr; agregar.ID = Convert.ToInt32(dataGridView2.Rows[row].Cells["idArticulo"].Value); agregar.ShowDialog(); }
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex < 0) { return; } var row = dataGridView1.CurrentRow.Index; Agregar_Articulo agregar = new Agregar_Articulo(); agregar.opcion = 2; agregar.ID = Convert.ToInt32(dataGridView1.Rows[row].Cells["ID"].Value.ToString()); agregar.ShowDialog(); ArmarConsulta(sender, e); }