Exemplo n.º 1
0
        private void Application_Exit(object sender, ExitEventArgs e)
        {
            if (_container != null)
            {
                _container.Dispose();
            }

            // Try to save, if there's an IO error, just ignore it here, nothing we can do
            try
            {
                Settings.Default.Save();
            }
            catch
            {
            }

            DiagnosticsClient.TrackEvent("AppExit");

            DiagnosticsClient.OnExit();
        }