コード例 #1
0
ファイル: Menu.cs プロジェクト: cyclecodermn/SWG-Code
        public static void Start()
        {
            int menuChoice = 0;

            do
            {
                ShowMenu();
                menuChoice = CommonIO.GetIntFromUser(1, 5);
                ApplyChoice(menuChoice);
            } while (menuChoice != 5);
        }
コード例 #2
0
        public void Execute()
        {
            CommonIO.ShowHeader("Delete Order");
            DateTime OrderDateToDelete = ConsoleIO.AskForOrderDate();

            OrdrLkpResponses AllOrders = new OrdrLkpResponses();

            AllOrders = _manager.LoadOrders(OrderDateToDelete);

            if (AllOrders.Success)
            {
                _orders = AllOrders.Orders;
                int orderNumtoDelete = CommonIO.GetIntFromUser(1, 999, 0, "What order number would you like to delete?");
                DeleteOrder(OrderDateToDelete, orderNumtoDelete);
            }
            else
            {
                CommonIO.MessageToUserInBlue(AllOrders.Message);
            }
        }