How to raise an event when another event is raised?
- by WulfgarPro
Hi,
I have an application that handles the OnQuit event of another running application. I would like to raise an additional (custom) event when the OnQuit event is handled. How could I implement such an event?
My OnQuit handler is like so:
private void StkQuit()
{
_stkApplicationUi.OnQuit -= StkQuit;
Marshal.FinalReleaseComObject(_stkApplicationUi);
Application.Exit();
}
The reason I require the additional event is so that I can tell my View layer that the application has exited. If this is not the correct way, what would be better?
WulfgarPro