I have an application that handles the OnQuit event of another running application. How can I raise an additional (custom) event when said OnQuit event is handled.
My OnQuit handler:
private void StkQuit()
{
_stkApplicationUi.OnQuit -= StkQuit;
Marshal.FinalReleaseComObject(_stkApplicationUi);
Application.Exit();
}
I will usually have an event in my view interface like so:
Then from a presenter constructor I’ll wire up those events:
And from your aspx codebehind:
Hope that helps!!