Esempio n. 1
0
        private void _view_MainFormFormClosed(object sender, EventArgs e)
        {
            try
            {
                _loggerFactory.CloseProgramLogged();

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

                if (_timeManager != null)
                {
                    _timeManager.Stop();
                    _timeManager.Dispose();
                }
            }
            catch (Exception ex)
            {
                _loggerFactory.ErrorLogged(ex);
            }
        }