コード例 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            string             cert    = listatratamientosLocal.ElementAt(dgvTratamientos.CurrentCell.RowIndex).numeroTratamiento;
            listarTratamientos ventana = new listarTratamientos(cert, 1);

            ventana.ShowDialog();
        }
コード例 #2
0
        private void button5_Click(object sender, EventArgs e)
        {
            if (dgvDetalle.SelectedCells.Count == 0)
            {
                MessageBox.Show("Debe seleccionar al menos uno");
                return;
            }
            decimal            cant    = listaDetalles.ElementAt(dgvDetalle.CurrentCell.RowIndex).cantidadVendida;
            listarTratamientos ventana = new listarTratamientos(cant);

            ventana.ShowDialog();
            listaDetalles.ElementAt(dgvDetalle.CurrentCell.RowIndex).numeroCertificado = ventana.numeroCertificado;
            refrescarGrilla();
        }