private void NewGame() { Timer.Stop(); StateOwner = new GameStateOwner(GameStateGenerator.GenerateGameState()); // ReSharper disable once ExplicitCallerInfoArgument GameState.PropertyChanged += (o, eventArgs) => OnPropertyChanged(eventArgs.PropertyName); }
private void LoadGameFrom(string file) { Timer.Stop(); StateOwner = new GameStateOwner(GameStateSaver.LoadFrom(file)); }