public void Add()
        {
            while (true)
            {
                switch (menu.MenuInsert())
                {
                case "1":
                    InsertIntoCoutries();
                    break;

                case "2":
                    InsertIntoTowns();
                    break;

                case "3":
                    InsertIntoRooms();
                    break;

                case "4":
                    InsertIntoClients();
                    break;

                case "5":
                    InsertIntoReservation();
                    break;

                default: return;
                    //  break;
                }
            }
        }
예제 #2
0
        public void Start()
        {
            while (true)
            {
                switch (menu.MenuInsert())
                {
                case "1":
                    InsertIntoCoutries();
                    break;

                case "2":
                    InsertIntoTowns();
                    break;

                default: return;
                    //  break;
                }
            }
        }