public CurrentGameView(CurrentGameViewModel vm) { InitializeComponent(); vm.Navigation = Navigation; BindingContext = vm; _vm = vm; }
private void OnNewGameState(CurrentGameStateService gs) { CurrentGameViewModel currentGameViewModel = new CurrentGameViewModel(gs); CurrentMatchInfo = currentGameViewModel.CurrentMatchInfo; }
public CurrentGameView(IDataAccess dataAccess) { InitializeComponent(); DataContext = new CurrentGameViewModel(dataAccess); }
public MovePenguinValidationViewModel(CurrentGameViewModel contextViewModel) : base() { currentGameViewModel = contextViewModel; }
public PlacePenguinViewModelCommand(CurrentGameViewModel contextViewModel) : base() { currentGameViewModel = contextViewModel; }
public MovePenguinSelectorViewModelCommand(CurrentGameViewModel contextViewModel) : base() { currentGameViewModel = contextViewModel; }
public PlayAIViewModelCommand(CurrentGameViewModel contextViewModel) : base() { currentGameViewModel = contextViewModel; }
public CurrentGameView() { InitializeComponent(); viewModel = new CurrentGameViewModel(); DataContext = viewModel; }