protected void OnQuitApp() { // ... do something ... // can only be invoked in this class QuitEventHandler?.Invoke(this, EventArgs.Empty); }
public void OnQuit() { QuitEventHandler?.Invoke(this, EventArgs.Empty); }