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