public SystemStatsViewModel(ISystemStatsService systemStatsService)
        {
            _systemStatsService = systemStatsService;
            RefreshCommand = new DelegateCommand(Start);

            _processorServiceTimer = new DispatcherTimer
            {
                Interval = TimeSpan.FromMilliseconds(ProcessorServiceRefreshIntervalMs)
            };
            _processorServiceTimer.Tick += ProcessorServiceTimerTick;
        }
Exemple #2
0
        public SystemStatsViewModel(ISystemStatsService systemStatsService)
        {
            _systemStatsService = systemStatsService;
            RefreshCommand      = new DelegateCommand(Start);

            _processorServiceTimer = new DispatcherTimer
            {
                Interval = TimeSpan.FromMilliseconds(ProcessorServiceRefreshIntervalMs)
            };
            _processorServiceTimer.Tick += ProcessorServiceTimerTick;
        }