Esempio n. 1
0
        static void MenuVoyages(OutilsData outils)
        {
            bool continuer = true;

            while (continuer)
            {
                var choix = OutilsApplication.AffichageMenuVoyage();
                switch (choix)
                {
                case "1":
                    OutilsMetier.ListerVoyages(outils);
                    Console.ReadKey();
                    break;

                case "2":
                    OutilsMetier.RechercherVoyage();
                    Console.ReadKey();
                    break;

                case "3":
                    OutilsMetier.CreerNouveauVoyage();
                    Console.ReadKey();
                    break;

                case "Q":
                case "q":
                    OutilsApplication.CenterText("REVENIR AU MENU PRINCIPAL");
                    return;
                }
            }
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Client     cli    = new Client();
            OutilsData outils = new OutilsData();

            OutilsApplication.Loggin(outils);

            bool continuer = true;

            while (continuer)
            {
                var choix = OutilsApplication.AffichageMenu();
                switch (choix)
                {
                case "1":
                    MenuClients(outils);
                    break;

                case "2":
                    MenuVoyages(outils);
                    break;

                case "3":
                    MenuDossiers(outils);
                    break;

                case "Q":
                case "q":
                    OutilsApplication.CenterText("QUITTER");
                    //outils.Testament();
                    return;

                default:
                    Console.WriteLine("Choix invalide, recommencez");
                    Console.ReadKey();
                    OutilsApplication.AffichageMenu();
                    break;
                }
            }
        }
Esempio n. 3
0
        static void MenuDossiers(OutilsData outils)
        {
            bool continuer = true;

            while (continuer)
            {
                var choix = OutilsApplication.AffichageMenuDossier();
                switch (choix)
                {
                case "1":
                    OutilsApplication.CenterText("LISTE DES DOSSIERS\n");
                    OutilsMetier.ListerDossiers(outils);
                    Console.ReadKey();
                    break;

                case "2":
                    OutilsApplication.CenterText("RECHERCHER UN DOSSIER\n");
                    OutilsMetier.RechercherDossier();
                    break;

                case "3":
                    OutilsApplication.CenterText("CREER UN DOSSIER\n");
                    OutilsMetier.CreerDossier();
                    break;

                case "4":
                    OutilsApplication.CenterText("SUPPRIMER UN DOSSIER\n");
                    OutilsMetier.SupprimerDossier();
                    break;

                case "Q":
                case "q":
                    OutilsApplication.CenterText("REVENIR AU MENU PRINCIPAL");
                    return;
                }
            }
        }