public void OnLoadGameButtonClick() { JsonFileManager jsonFileManager = new JsonFileManager(); try { Game game = jsonFileManager.LoadGame(); this.baseViewModel.SelectedPageView = new GameView() { DataContext = new GameViewModel(game, baseViewModel) }; } catch (NoPathSelectedException) { } }