コード例 #1
0
        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();
        }
コード例 #2
0
        private void agregarBtn_Click(object sender, EventArgs e)
        {
            FacturacionDeArticulosEdForm facturacionDeArticulosEdForm = new FacturacionDeArticulosEdForm();

            facturacionDeArticulosEdForm.Show();
        }