예제 #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);
 }