Exemplo 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);
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Остановить сервис
 /// </summary>
 public void Stop()
 {
     _timeManager.Stop();
 }