D
David Elliott
I have a context menu program and am wanting to send information from it
to a windows application.
The Windows app has the delegate method defined to catch the event
The Context Menu App is wired to send the event with the exception of
it needs some place to send it to. The OnAddJobEvent is null at this
point because the context menu doesn't want to receive the event, it
just wants to send it.
Any help would be appreciated.
Dave
===========================
public delegate void AddJobNotificationEventHandler(object sender, AddJobEventArgs args);
public class AddJobNotification
{
public event AddJobNotificationEventHandler OnAddJobEvent;
public void AddJob(...)
{
if ( OnAddJobEvent != null )
{
AddJobEventArgs args = new AddJobEventArgs(...);
OnAddJobEvent(this, args);
}
}
}
to a windows application.
The Windows app has the delegate method defined to catch the event
The Context Menu App is wired to send the event with the exception of
it needs some place to send it to. The OnAddJobEvent is null at this
point because the context menu doesn't want to receive the event, it
just wants to send it.
Any help would be appreciated.
Dave
===========================
public delegate void AddJobNotificationEventHandler(object sender, AddJobEventArgs args);
public class AddJobNotification
{
public event AddJobNotificationEventHandler OnAddJobEvent;
public void AddJob(...)
{
if ( OnAddJobEvent != null )
{
AddJobEventArgs args = new AddJobEventArgs(...);
OnAddJobEvent(this, args);
}
}
}