public ActivityMonitorComponent() { _connectionState = new DisconnectedState(this); _localServerWatcher = LocalServerWatcher.Instance; _textFilterTimer = new Timer(OnTextFilterTimerElapsed, null, 1000); _studyCountWatcher = new StudyCountWatcher(OnStudyCountChanged); _workItemManager = new WorkItemUpdateManager(_workItems.Items, Include, OnFailureCountChanged); _workItemActionModel = new WorkItemActionModel(_workItems.Items, this); }
public StudyCountWatcher(System.Action onChanged) { _throttleTimer = new Timer(OnTimerElapsed, null, TimeSpan.FromSeconds(5)); _onChanged = onChanged; }
private LocalServerWatcher() { _refreshTimer = new Timer(OnTimerElapsed, null, TimeSpan.FromSeconds(20)); _refreshTimer.Start(); }