コード例 #1
0
ファイル: Order.cs プロジェクト: cudothanh-Nhan/BTL2_DB_HK202
 public void Copy(ItemOfOrder item)
 {
     this.Quantity    = item.Quantity;
     this.UPrice      = item.UPrice;
     this.Name        = item.Name;
     this.ImgUrl      = item.ImgUrl;
     this.MaxQuantity = item.MaxQuantity;
 }
コード例 #2
0
ファイル: Order.cs プロジェクト: cudothanh-Nhan/BTL2_DB_HK202
 public ItemOfOrder(ItemOfOrder item)
 {
     this.Id          = item.Id;
     this.Name        = item.Name;
     this.UPrice      = item.UPrice;
     this.Quantity    = item.Quantity;
     this.Total       = item.Total;
     this.ImgUrl      = item.ImgUrl;
     this.Type        = item.Type;
     this.MaxQuantity = item.MaxQuantity;
 }
コード例 #3
0
ファイル: Order.cs プロジェクト: cudothanh-Nhan/BTL2_DB_HK202
 public bool Equals(ItemOfOrder item)
 {
     return(this.Quantity == item.Quantity && this.UPrice == item.UPrice);
 }