示例#1
0
        /// <summary>
        /// The Paused event callback function.
        /// </summary>
        /// <param name="source">The application instance.</param>
        /// <param name="e">The event argument for Paused.</param>
        private void OnPaused(object source, NUIApplicationPausedEventArgs e)
        {
            Log.Info("NUI", "NUICorebackend OnPaused Called");
            var handler = Handlers[EventType.Paused] as Action;

            handler?.Invoke();
        }
示例#2
0
 // Callback for Application PauseSignal
 private void OnNUIApplicationPause(IntPtr data)
 {
     if (_applicationPauseEventHandler != null)
     {
         NUIApplicationPausedEventArgs e = new NUIApplicationPausedEventArgs();
         e.Application = this;
         _applicationPauseEventHandler.Invoke(this, e);
     }
 }