示例#1
0
        private void NewGame()
        {
            Timer.Stop();

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