private void RegisterLineChartTimer() { dispatcherTimer = new SmartDispatcherTimer(); dispatcherTimer.IsReentrant = false; dispatcherTimer.Interval = TimeSpan.FromSeconds(1); dispatcherTimer.TickTask = () => { UpdateGUI(); }; dispatcherTimer.Start(); }
private void RegisterTimer() { timer = new SmartDispatcherTimer(); timer.IsReentrant = false; timer.Interval = TimeSpan.FromSeconds(20); timer.TickTask = async () => { await CheckServiceChanged(); }; timer.Start(); }