public bool confirmarViaje() { viaje.asignarFecha(this.FechaInicio, this.FechaFin); viaje.asignarChofer(this.NumeroPersonas); viaje.asignarVehiculo(this.NumeroPersonas); Notificacion notificacion = new Notificacion(); notificacion.NotificacionReserva = "reserva realizada"; MessageBox.Show("Reserva realizada", "Notificacion", MessageBoxButtons.OK, MessageBoxIcon.Information); if (viaje.validarChoferVehiculo(viaje.asignarChofer(this.NumeroPersonas), viaje.asignarVehiculo(this.NumeroPersonas))) { registrarReservaAprovada(); } return(viaje.validarChoferVehiculo(viaje.asignarChofer(this.NumeroPersonas), viaje.asignarVehiculo(this.NumeroPersonas))); }
public void confirmarViaje() { Viaje viaje = new Viaje(); viaje.asignarChofer(this.NumeroPersonas); viaje.asignarVehiculo(this.NumeroPersonas); viaje.asignarFecha(this.FechaInicio, this.FechaFin); Notificacion notificacion = new Notificacion(); notificacion.NotificacionReserva = "reserva realizada"; MessageBox.Show("Reserva realizada", "Notificacion", MessageBoxButtons.OK, MessageBoxIcon.Information); }