// Constructor
 public AltaRecorridoForm()
 {
     InitializeComponent();
     recorrido = new Recorrido(); // Inicializamos el objeto recorrido
     recorrido.setPrecio(new PrecioRecorrido(lblPrecioRecorrido));
     tramosDisponibles   = new TramosDisponibles(dgvTramosDisponibles);
     tramosSeleccionados = new TramosSeleccionados(dgvTramosSeleccionados);
     this.tramosDisponibles.popularTramos();
     this.tramosDisponibles.getDgvTramosDisponibles().CellClick += dgvTramosDisponibles_CellContentClick;
 }
示例#2
0
 // Constructor
 public SeleccionTramoModificarPrecioForm()
 {
     InitializeComponent();
     tramosDisponibles = new TramosDisponibles(dgvTramosDisponibles);
     this.tramosDisponibles.getDgvTramosDisponibles().CellClick += dgvTramosDisponibles_CellContentClick;
 }