/ Published in: C#
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
En la página: ShowRatesFromPage ); En addproductrate: public delegate void SubmitClickedHandler(); public event SubmitClickedHandler SubmitClicked; protected virtual void OnSubmitClicked() { // If an event has no subscribers registerd, it will // evaluate to null. The test checks that the value is not // null, ensuring that there are subsribers before // calling the event itself. if (SubmitClicked != null) { SubmitClicked(); // Notify Subscribers } }