コード例 #1
0
        private void AffichageNombreProduit()
        {
            string pays = Input.Read <string>("Saisir un pays:");
            int    nbr  = Contexte.GetNbProduits(pays);

            Output.WriteLine(ConsoleColor.DarkCyan, nbr.ToString() + "produits");
        }
コード例 #2
0
        private void AfficherNBProduits()
        {
            string pays;

            Console.WriteLine("quel pays ? ");
            pays = Console.ReadLine();
            int nombre = Contexte.GetNbProduits(pays);

            //Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine(nombre.ToString() + "produits");
        }