private void DgvFacturacion_DoubleClick(object sender, EventArgs e) { var selectedID = int.Parse(DgvFacturacion.SelectedRows[0].Cells[0].Value.ToString()); var factura = entities.Facturacion_Articulos .Where(x => x.Id == selectedID) .FirstOrDefault(); FacturacionDeArticulosEdForm factEd = new FacturacionDeArticulosEdForm(factura); factEd.Show(); }
private void agregarBtn_Click(object sender, EventArgs e) { FacturacionDeArticulosEdForm facturacionDeArticulosEdForm = new FacturacionDeArticulosEdForm(); facturacionDeArticulosEdForm.Show(); }