public MainViewModel(Community community, SynchronizationService synhronizationService, NewGameSelectionModel newGameSelection) { _community = community; _synhronizationService = synhronizationService; _newGame = new NewGameViewModel(synhronizationService.Domain, newGameSelection); }
private void InitializeViewModel() { if (_viewModel == null) { _viewModel = ForView.Unwrap<NewGameViewModel>(DataContext); if (_viewModel != null) { _viewModel.HideNewGame += HideNewGame; } } }