private void StopTimerTick() { if (UiTimer != null) { UiTimer.Stop(); } }
private void TrainTimer_Elapsed(object sender, ElapsedEventArgs e) { Counter = 0; FirstEventTime = DateTime.MinValue; LastEventTime = DateTime.MinValue; UiTimer.Stop(); }
private async Task StartAnimation() { UiTimer.Stop(); await InvokeAsync(StateHasChanged); }
private void StopTimerTick() { UiTimer?.Stop(); }