//<summary> //initialize create View Model with data set //<summary> private void InstantiateAndShowView() { // // instantiate the view model and initialize the data set // _gameSessionViewModel = new GameSessionViewModel( _player, GameData.GameMap(), GameData.InitialGameMapLocation() ); GameSessionView gameSessionView = new GameSessionView(_gameSessionViewModel); gameSessionView.DataContext = _gameSessionViewModel; gameSessionView.Show(); // //dialog window is initially hidden to mitigate issue with main window closing after dialog window closes // _playerSetupView.Close(); }
/// <summary> /// create view model with data set /// </summary> private void InstantiateAndShowView() { // // instantiate the view model and initialize the data set // _gameSessionViewModel = new GameSessionViewModel( _player, GameData.InitialMessages(), GameData.GameMapData(), GameData.StartingLocation() ); GameSessionView gameSessionView = new GameSessionView(_gameSessionViewModel); gameSessionView.DataContext = _gameSessionViewModel; gameSessionView.Show(); PlayerSetupView playerSetupView = new PlayerSetupView(_player); playerSetupView.DataContext = _player; playerSetupView.Show(); // // dialog window is initially hidden to mitigate issue with // main window closing after dialog window closes // // commented out because the player setup window is disabled //_playerSetupView.Close(); }
private void InstantiateAndShowView() { _gameSessionViewModel = new GameSessionViewModel(_player, _gameMap, _currentLocation); GameSessionView gameSessionView = new GameSessionView(_gameSessionViewModel); gameSessionView.DataContext = _gameSessionViewModel; gameSessionView.Show(); }
private void InstantiateAndShowView() { _gameSessionViewModel = new GameSessionViewModel(_player, _messages, GameData.GameMapData(), GameData.InitialGameMapLocation()); GameSessionView gameSessionView = new GameSessionView(_gameSessionViewModel); gameSessionView.DataContext = _gameSessionViewModel; gameSessionView.Show(); }
private void InstantiateAndShowView() { _gameSessionViewModel = new GameSessionViewModel(_player); GameSessionView gameSessionView = new GameSessionView(_gameSessionViewModel); gameSessionView.DataContext = _gameSessionViewModel; gameSessionView.Show(); }
private void ShowGameView() { _gameSessionViewModel = new GameSessionViewModel(_player, _masterGameMap, _buttonVisibility); GameSessionView gameSessionView = new GameSessionView(_gameSessionViewModel); gameSessionView.DataContext = _gameSessionViewModel; gameSessionView.Show(); _playerEntryAndSetupView.Close(); }
private void InstantiateAndShowView() { _gameSessionViewModel = new GameSessionViewModel(_player, _spells, _spellComponentList); GameSessionView gameSessionView = new GameSessionView(_gameSessionViewModel); gameSessionView.DataContext = _gameSessionViewModel; gameSessionView.Show(); }
/// <summary> /// Initiate the view /// </summary> private void InstantiateAndShowView() { _gameSessionViewModel = new GameSessionViewModel(_player, _messages, _gameMap, _gameSessionViewModel); GameSessionView gameSessionView = new GameSessionView(_gameSessionViewModel); gameSessionView.DataContext = _gameSessionViewModel; gameSessionView.Show(); //_playerSetupView.Close(); }
public void InstantiateAndShowView() { // // instantiate the view model and initialize the data set // _gameSessionViewModel = new GameSessionViewModel(_player, _messages); GameSessionView gameSessionView = new GameSessionView(_gameSessionViewModel); gameSessionView.DataContext = _gameSessionViewModel; gameSessionView.Show(); }
/// <summary> /// Create view model with data set /// </summary> private void InstantiateAndShowView() { //INSTANTIATE the view model and INITIALIZE the data set _gameSessionViewModel = new GameSessionViewModel(_player, _messages); GameSessionView gameSessionView = new GameSessionView(_gameSessionViewModel); gameSessionView.DataContext = _gameSessionViewModel; gameSessionView.Show(); _playerSetupView.Close(); }
/// <summary> /// create view model with data set /// </summary> private void InstantiateAndShowView() { // instatiate the view model and initialize the data set _gameSessionViewModel = new GameSessionViewModel(_player, _messages); GameSessionView gameSessionView = new GameSessionView(_gameSessionViewModel); gameSessionView.DataContext = _gameSessionViewModel; gameSessionView.Show(); _playerSetupView.Close(); }
private void InstantiateAndShowView() { _gameSessionViewModel = new GameSessionViewModel(_player, GameData.InitialMessages(), GameData.GameMap(), GameData.InitialGameMapLocation(), _currentEnemies ); GameSessionView gameSessionView = new GameSessionView(_gameSessionViewModel); gameSessionView.DataContext = _gameSessionViewModel; gameSessionView.Show(); }
private void InstantiateAndShowView() { _gameSessionViewModel = new GameSessionViewModel( _player, _gameMap, _initialLocationCoordinates ); GameSessionView gameSessionView = new GameSessionView(_gameSessionViewModel); gameSessionView.DataContext = _gameSessionViewModel; gameSessionView.Show(); }
public void InstantiateAndShowView() { _gameSessionViewModel = new GameSessionViewModel( _player, GameData.InitialMessages()); GameSessionView gameSessionView = new GameSessionView { DataContext = _gameSessionViewModel }; gameSessionView.Show(); }
/// <summary> /// Method that instantiates the initial view model and data set. /// </summary> private void InstantiateAndShowView() { // Instantiate the view model and initialize the initial data set _gameSessionViewModel = new GameViewModel(_player, _messages, _gameMap, _currentLocation); GameSessionView gameSessionView = new GameSessionView(_gameSessionViewModel) { DataContext = _gameSessionViewModel }; // Display main gameplay window. gameSessionView.Show(); // Closes the set-up window if open. _playerSetupView.Close(); }
private void InstantiateAndShowView() { _gameSessionViewModel = new GameSessionViewModel( _player, GameData.InitialMesseges() ); GameSessionView gameSessionView = new GameSessionView(_gameSessionViewModel); gameSessionView.DataContext = _gameSessionViewModel; gameSessionView.Show(); _playerSetUpView.Close(); }
/// <summary> /// create view model with data set /// </summary> private void InstantiateAndShowView() { // // instantiate the view model and initialize the data set // _gameSessionViewModel = new GameSessionViewModel( _player, _messages ); GameSessionView gameSessionView = new GameSessionView(_gameSessionViewModel); gameSessionView.Show(); // // dialog window is initially hidden to mitigate issue with // main window closing after dialog window closes _playerSetupView.Close(); }
private void InstantiateAndShowView() { _gameSessionViewModel = new GameSessionViewModel( _player, _messages, _gameMap, _currentLocation ); GameSessionView gameSessionView = new GameSessionView(_gameSessionViewModel); gameSessionView.DataContext = _gameSessionViewModel; gameSessionView.Show(); if (_playerSetupView.ShowActivated) { _playerSetupView.Close(); } }
/// <summary> /// create view model with data set /// </summary> private void InstantiateAndShowView() { // // instantiate the view model and initialize the data set // _gameSessionViewModel = new GameSessionViewModel(_player, _messages, _gameMap, _currentLocation); GameSessionView gameSessionView = new GameSessionView(_gameSessionViewModel); gameSessionView.DataContext = _gameSessionViewModel; gameSessionView.Show(); // // dialog window is initially hidden to mitigate issue with // main window closing after dialog window closes // // commented out because the player setup window is disabled // //_playerSetupView.Close(); }