How can I notify an outside “source” of the changes I make using a delegate.
Basically I have a form, I fill in that form and click a button that saves
my filled in data into a DB table as an XML. I want to be able to notify that the changes to the form have been made using a delegate that another “entity” can invoke.
public void Changes_Made()
{
//yay. Changes made.
}
protected void okButton_Click(object sender, EventArgs e)
{
//...
//save data
//...
Changes_Made();
}
Practical scenario is: as i save my preferences, the grid that shows my data will refresh and use the preferences set when i click the ok_button. Does this make any sense?
You can raise a event for notifying the changes.