// 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; }
// Constructor public SeleccionTramoModificarPrecioForm() { InitializeComponent(); tramosDisponibles = new TramosDisponibles(dgvTramosDisponibles); this.tramosDisponibles.getDgvTramosDisponibles().CellClick += dgvTramosDisponibles_CellContentClick; }