public Order() { ID = 0; Customer = ""; itemList = new nlist <OrderItem>(); CreatTime = DateTime.Now; }
public Order(int orderID, string costumer, nlist <OrderItem> list) : this() { this.Customer = costumer; this.ID = orderID; this.itemList = new nlist <OrderItem>(); foreach (object o in list) { this.itemList.Add(o as OrderItem); } }
public Order() { ID = 0; Customer = ""; itemList = new nlist <OrderItem>(); }