示例#1
0
        private void ApplicationOnApplicationExit(object sender, EventArgs e)
        {
            if (!_shutdownTriggered)
            {
                _shutdownTriggered = true;
                Container.Execute <IShutdownAction, ShutdownContext>(new ShutdownContext(ShutdownTrigger.MainThreadShutdown));
            }

            _notificationIcon.ApplicationExit();
        }