I want to define message, which a set of forms to listen for it, and each of them to raise.
For example:
BaseForm:Form{
publuc event EventHandler DataChanged;
protected virtual void OnDataChanged
{
if(DataChanged != null)
DataChanged(this, new EventHandler());
}
ChildForm:BaseForm
listen for the message
SecondForm:BaseForm
listen for the message and raise message
What is the schema for this. Something like SendMessage, PostMessage and WinProc in C APIs
Any Ideas!
For example:
BaseForm:Form{
publuc event EventHandler DataChanged;
protected virtual void OnDataChanged
{
if(DataChanged != null)
DataChanged(this, new EventHandler());
}
ChildForm:BaseForm
listen for the message
SecondForm:BaseForm
listen for the message and raise message
What is the schema for this. Something like SendMessage, PostMessage and WinProc in C APIs
Any Ideas!