public OrderList(string user, string symphonie, string tango, string mocca) { var newOrder = new Order(); newOrder.User = user; newOrder.Symphonie = symphonie; newOrder.Tango = tango; newOrder.Mocca = mocca; this.Add(newOrder); }
public void Remove(Order item) { _orderList.Remove(item); this.NotifyCollectionChanged(NotifyCollectionChangedAction.Remove, item); }
public void NotifyCollectionChanged(NotifyCollectionChangedAction action, Order oldItem, Order newItem) { this.CollectionChanged(this, new NotifyCollectionChangedEventArgs(action, newItem, oldItem)); }
public void Add(Order item) { _orderList.Add(item); this.NotifyCollectionChanged(NotifyCollectionChangedAction.Add, item); }