Beispiel #1
0
        private void Application_Exit(object sender, ExitEventArgs e)
        {
            SquirrelContext.Dispose();

            if (_menu != null)
            {
                _menu.Dispose();
                _menu = null;
            }

            if (_context != null)
            {
                _context.Dispose();
                _context = null;
            }

            if (_mutex != null)
            {
                _mutex.Dispose();
                _mutex = null;
            }

            Log.Info("Application exited.");
        }