Example #1
0
 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);
 }
Example #2
0
 public void Remove(Order item)
 {
     _orderList.Remove(item);
     this.NotifyCollectionChanged(NotifyCollectionChangedAction.Remove, item);
 }
Example #3
0
 public void NotifyCollectionChanged(NotifyCollectionChangedAction action, Order oldItem, Order newItem)
 {
     this.CollectionChanged(this, new NotifyCollectionChangedEventArgs(action, newItem, oldItem));
 }
Example #4
0
 public void Add(Order item)
 {
     _orderList.Add(item);
     this.NotifyCollectionChanged(NotifyCollectionChangedAction.Add, item);
 }