static void CreerLocation(Client cli, Vehicule veh, Parc parc)    // Méthode de création d'une location
        {
            Console.Clear();
            Console.WriteLine("\t\tPage de Location :\n\nLocation du vehicule :");
            veh.ToString();
            Trajet   tra = new Trajet();
            Location loc = new Location(veh, cli, tra);

            parc.AjouterUneLocation(loc);
            cli.ChargementLocationClient();
        }
Example #2
0
        public override string ToString()   // Retourne les informations de la location
        {
            string str = vehi.ToString() + "\n\n" + tra.ToString() + "\ndu " + dateDeDepart + "\nau " + dateDArriver + "\nà un prix de " + prixLoc + " euros";

            return(str);
        }