コード例 #1
0
 private void EnterInput_Product()
 {
     foreach (Product product in Model.Instance.Products)
     {
         if (InputForBasket.Equals(product.ProductId))
         {
             undoRedoController.AddAndExecute(new AddProductToBasketCommand(Basket, product, 1));
             return;
         }
     }
 }
コード例 #2
0
 private void EnterInput_User()
 {
     foreach (User user in Model.Instance.Users)
     {
         if (InputForBasket.Equals(user.UserID))
         {
             CheckOutBasket();
             return;
         }
     }
 }