Beispiel #1
0
 protected virtual void OnAddProduct(AddNewProductEventArgs e)
 {
     AddProduct?.Invoke(this, e);
 }
Beispiel #2
0
 void HandleCustomEvent(object sender, AddNewProductEventArgs e)
 {
     Console.WriteLine($"Id: {_id} information about new Product \n {e.Message}");
 }