private void BackgroundUpdater_DoWork(object sender, DoWorkEventArgs e)
        {
            _computer.Accept(_updateVisitor);

            if (_logSensors != null && _logSensors.Value && _delayCount >= 4)
            {
                _logger.Log();
            }

            if (_delayCount < 4)
            {
                _delayCount++;
            }

            _plotPanel.InvalidatePlot();
        }
Пример #2
0
        private void Timer_Tick(object sender, EventArgs e)
        {
            _computer.Accept(_updateVisitor);
            treeView.Invalidate();
            _plotPanel.InvalidatePlot();
            _systemTray.Redraw();
            _gadget?.Redraw();
            _wmiProvider?.Update();

            if (_logSensors != null && _logSensors.Value && _delayCount >= 4)
            {
                _logger.Log();
            }

            if (_delayCount < 4)
            {
                _delayCount++;
            }
        }