private void OnApplicationClosing(object sender, EventArgs e) { Terminating?.Invoke(this, EventArgs.Empty); }
public void Dispose() => Terminating?.Invoke(this, EventArgs.Empty);
private static void OnTerminating() { Terminating?.Invoke(null, EventArgs.Empty); }
internal void FireTerminating() => Terminating?.Invoke(this, EventArgs.Empty);
protected override void OnClosing(CancelEventArgs e) { base.OnClosing(e); Terminating?.Invoke(); }
private void OnTerminateApp(object sender, EventArgs args) { Terminating?.Invoke(null, EventArgs.Empty); Dispose(); }