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