private void btnNuevo_Click(object sender, EventArgs e) { frmManArticulos formulario = new frmManArticulos(); formulario.StartPosition = FormStartPosition.CenterScreen; formulario.recogerDatos(0); formulario.ShowDialog(); Buscar(); }
private void grdArticulos_DoubleClick(object sender, EventArgs e) { if (this.grdArticulos.RowCount > 0) { frmManArticulos formulario = new frmManArticulos(); formulario.recogerDatos(Convert.ToInt32(this.grdArticulos.CurrentRow.Cells[0].Value)); formulario.StartPosition = FormStartPosition.CenterScreen; formulario.ShowDialog(); Buscar(); } }