Exemplo n.º 1
0
        /// <summary>
        /// The Terminated event callback function.
        /// </summary>
        /// <param name="source">The application instance.</param>
        /// <param name="e">The event argument for Terminated.</param>
        private void OnTerminated(object source, NUIApplicationTerminatingEventArgs e)
        {
            Log.Info("NUI", "NUICorebackend OnTerminated Called");
            var handler = Handlers[EventType.Terminated] as Action;

            handler?.Invoke();
        }
Exemplo n.º 2
0
 // Callback for Application TerminateSignal
 private void OnNUIApplicationTerminate(IntPtr data)
 {
     if (_applicationTerminateEventHandler != null)
     {
         NUIApplicationTerminatingEventArgs e = new NUIApplicationTerminatingEventArgs();
         e.Application = this;
         _applicationTerminateEventHandler.Invoke(this, e);
     }
     if (Window.Instance)
     {
         Window.Instance.DisconnectNativeSignals();
     }
 }
Exemplo n.º 3
0
        /// <summary>
        /// The Terminated event callback function.
        /// </summary>
        /// <param name="source">The application instance.</param>
        /// <param name="e">The event argument for Terminated.</param>
        private void OnTerminated(object source, NUIApplicationTerminatingEventArgs e)
        {
            var handler = Handlers[EventType.Terminated] as Action;

            handler?.Invoke();
        }