Exemple #1
0
        /// <summary>
        /// Main
        /// </summary>
        /// <param name="args">Arguments du programme</param>
        static void Main(string[] args)
        {
            BusinessManager businessManager = new BusinessManager();
            string choise;
            string loc;
            bool run = true;

            do
            {
                displayMenu();
                Console.Write("Votre choix : ");
                choise = Console.ReadLine();

                Console.WriteLine();

                switch (choise)
                {
                    case "0":
                        businessManager.EvenementsClassesDate().ToList().ForEach(value => Console.WriteLine(value.MonEvenement.Titre));
                        break;
                    case "1":
                        businessManager.ArtistesAssocies().ToList().ForEach(value => Console.WriteLine(value));
                        break;
                    case "2":
                        businessManager.LieuxUtilises().ToList().ForEach(value => Console.WriteLine(value));
                        break;
                    case "3":
                        Console.Write("Le lieu : ");
                        loc = Console.ReadLine();
                        businessManager.EvenementsPourLieu(loc).ToList().ForEach(value => Console.WriteLine(value));
                        break;
                    case "4":
                        run = false;
                        break;
                }

            } while (run);
        }