Esempio n. 1
0
        private void RestartMonitoring()
        {
            _sys.StartMonitoring();

            //timer_Tick(this, EventArgs.Empty);

            //_timer.Interval = TimeSpan.FromMilliseconds(_sys.Config.MonitorInterval);
            //_timer.Start();
        }
        private void ShowConfigDialog()
        {
            ConfigWindow dlg = new ConfigWindow(_sys);

            _sys.StopMonitoring();

            if (dlg.ShowDialog() == true)
            {
                RestartSystem();
            }
            else
            {
                _sys.StartMonitoring();
            }
        }