Exemple #1
0
        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);
        }
Exemple #2
0
        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)));
        }