Esempio n. 1
0
        public void Start()
        {
            bool exit = false;

            while (!exit)
            {
                PrintMainMenu();
                string mainMenuChoice = Console.ReadLine();
                switch (mainMenuChoice)
                {
                case "1":
                    MenuSwitches.CreateSwitch();
                    break;

                case "2":
                    MenuOptions.CreateMember();
                    break;

                case "3":
                    MenuSwitches.DeleteSwitch();
                    break;

                case "4":
                    MenuSwitches.UpdateSwitch();
                    break;

                case "5":
                    MenuOptions.BorrowBookMenu();
                    break;

                case "6":
                    MenuOptions.BorrowMovieMenu();
                    break;

                case "7":
                    MenuOptions.ReturnItemMenu();
                    break;

                case "8":
                    MenuSwitches.PrintAnyList();
                    break;

                case "9":

                    break;

                case "10":

                    break;

                case "0":
                    exit = true;
                    break;

                default:
                    break;
                }
            }
        }
Esempio n. 2
0
        public static void ReturnItemMenu()
        {
            Member member = SelectMemberById.SelectMember("return an item");

            if (member != null)
            {
                MenuSwitches.ReturnItem(member);
            }
        }