private void PausePlay() { if (_timeloop == null) { return; } if (IsPaused) { _timeloop.StartTime(); IsPaused = false; } else { _timeloop.PauseTime(); IsPaused = true; } }
private void PausePlay() { if (_timeloop == null) { return; } if (IsPaused) { _timeloop.StartTime(); IsPaused = false; } else { _timeloop.PauseTime(); IsPaused = true; } OnPropertyChanged(nameof(IsPaused)); }