Example #1
0
 public Order(Item item, DateTime dateTime):this(item)
 {
     this.OrderTime = dateTime;
 }
Example #2
0
 public Order(Item item)
 {
     this.Item = item;
     this.Value = this.Item.ShelfLife;
     Id = Convert.ToInt32(OrderTime.Ticks % 10000) + 1;  // ID 0 is reserved for EmptyOrder
 }