private void dataListado_DoubleClick_1(object sender, EventArgs e) { FrmIngreso form = FrmIngreso.GetInstancia(); string par1, par2; par1 = Convert.ToString(this.dataListado.CurrentRow.Cells["cod_articulo"].Value); par2 = Convert.ToString(this.dataListado.CurrentRow.Cells["nombre"].Value); form.setArticulo(par1, par2); this.Hide(); }
private void dataListado_DoubleClick(object sender, EventArgs e) { FrmIngreso from = FrmIngreso.GetInstancia(); string par1, par2; par1 = Convert.ToString(this.dataListado.CurrentRow.Cells["idarticulo"].Value); par2 = Convert.ToString(this.dataListado.CurrentRow.Cells["nombre"].Value); // par3 = Convert.ToString(this.dataListado.CurrentRow.Cells["precio_compra"].Value); from.setArticulo(par1, par2); this.Hide(); }