Beispiel #1
0
 private static void PrintWhenRmoved <OrderItem>(object sender, ModifyElementEventArgs <OrderItem> e)
 {
     Console.WriteLine($"Element {e.Item} was deleted");
 }
 protected virtual void OnOrderItemRemoved(object sender, ModifyElementEventArgs <T> e)
 {
     OrderItemRemoved?.Invoke(this, e);
 }
Beispiel #3
0
 private static void PrintWhenAdded <OrderItem>(object sender, ModifyElementEventArgs <OrderItem> e)
 {
     Console.WriteLine($"Element {e.Item} was added to collection");
 }