private void OnOrderChangedInRepository(object sender, OrderChangedEventArgs e)
 {
     LogEvent.OrderChanged.Log(e.OldOrder.Id);
     orders.Remove(orders.First(o => o.Id == e.OldOrder.Id));
     orders.Add(new OrderViewModel(e.NewOrder));
 }
Пример #2
0
 protected void OnOrderChanged(OrderChangedEventArgs e)
 {
     if (OrderChanged != null)
         OrderChanged(this, e);
 }