示例#1
0
 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
 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
 public bool Equals(ItemOfOrder item)
 {
     return(this.Quantity == item.Quantity && this.UPrice == item.UPrice);
 }