private void InitItemsSource() { // wait for the map to stop navigating so //map navigation performance doesn't suffer from it. if (_updateItemsSourceTimer == null) { _updateItemsSourceTimer = new ThrottleTimer(100) { Action = InitItemsSourceImpl }; } _updateItemsSourceTimer.Invoke(); }
private void UpdateLayerItemsSource() { if (_updateTimer == null) { _updateTimer = new ThrottleTimer(100) { Action = UpdateLayerItemsSourceImpl }; } _updateTimer.Invoke(); }
private void OnScaleChanged() { //Update Layer Visibilities is expensive, so wait for the map to stop navigating so //map navigation performance doesn't suffer from it. if (_updateTimer == null) { _updateTimer = new ThrottleTimer(100) { Action = UpdateLayerVisibilities }; } _updateTimer.Invoke(); }
private void UpdateAttributionItems() { // wait for the map to stop navigating so //map navigation performance doesn't suffer from it. if (_updateItemsTimer == null) { _updateItemsTimer = new ThrottleTimer(100) { Action = UpdateAttributionItemsImpl }; } _updateItemsTimer.Invoke(); }
public override void Start() { ProfileManager.LoadEmpty(); BPLStatusText = "{TimerName}: {TimeRemaining} ({TimeDuration})"; for (var i = 0; i < ThrottleTimer.ThrottleTimerCount; i++) { ThrottleTimers[i] = new ThrottleTimer("", 0); } ThrottleTimers[0].TimerName = ThrottleTimer.LeaveQueueTimerString; ThrottleTimers[1].TimerName = ThrottleTimer.LoserForfeitTimerString; ThrottleTimers[2].TimerName = ThrottleTimer.WinnerForfeitTimerString; ThrottleTimers[3].TimerName = ThrottleTimer.RequeueTimerString; BPLLog("Initialization complete."); }
private void OnScaleChanged() { //Update Layer Visibilities is expensive, so wait for the map to stop navigating so //map navigation performance doesn't suffer from it. if (updateTimer == null) { updateTimer = new ThrottleTimer(50) { Action = UpdateLayerVisibilities }; } updateTimer.Invoke(); }