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