/// <summary> /// Invokes the application state event handlers with the specified parameter. /// </summary> /// <param name="enabled">Whether or not the application was put in an enabled state.</param> private void OnApplicationState(bool enabled) { ApplicationState?.Invoke(this, new ApplicationStateEventArgs(enabled)); }