private void Timer_Tick(object sender, EventArgs e)
        {
            treeView.Invalidate();
            _systemTray.Redraw();
            _gadget?.Redraw();
            _wmiProvider?.Update();

            if (!backgroundUpdater.IsBusy)
            {
                backgroundUpdater.RunWorkerAsync();
            }

            RestoreCollapsedNodeState(treeView);
        }
Пример #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++;
            }
        }