示例#1
0
文件: OrderLine.cs 项目: smydolf/HTC
 public OrderLine(Order order, Products product, int quantity)
 {
     this.Order = order;
     this.Product = product;
     this.Quantity = quantity;
     CalculateTotal();
 }
示例#2
0
文件: Order.cs 项目: smydolf/HTC
 public void AddProduct(Products product, int quantity)
 {
     if (OrderLines == null)
     {
         OrderLines = new List<OrderLine>();
     }
     OrderLines.Add(new OrderLine(this, product, quantity));
 }
示例#3
0
文件: Admin.cs 项目: smydolf/HTC
 private void AddProductToBase(Products product)
 {
     Product.Add(product);
 }