Esempio n. 1
0
 public CurrentGameView(CurrentGameViewModel vm)
 {
     InitializeComponent();
     vm.Navigation  = Navigation;
     BindingContext = vm;
     _vm            = vm;
 }
Esempio n. 2
0
        private void OnNewGameState(CurrentGameStateService gs)
        {
            CurrentGameViewModel currentGameViewModel = new CurrentGameViewModel(gs);

            CurrentMatchInfo = currentGameViewModel.CurrentMatchInfo;
        }
Esempio n. 3
0
 public CurrentGameView(IDataAccess dataAccess)
 {
     InitializeComponent();
     DataContext = new CurrentGameViewModel(dataAccess);
 }
Esempio n. 4
0
 public MovePenguinValidationViewModel(CurrentGameViewModel contextViewModel) : base()
 {
     currentGameViewModel = contextViewModel;
 }
 public PlacePenguinViewModelCommand(CurrentGameViewModel contextViewModel) : base()
 {
     currentGameViewModel = contextViewModel;
 }
Esempio n. 6
0
 public MovePenguinSelectorViewModelCommand(CurrentGameViewModel contextViewModel) : base()
 {
     currentGameViewModel = contextViewModel;
 }
 public PlayAIViewModelCommand(CurrentGameViewModel contextViewModel) : base()
 {
     currentGameViewModel = contextViewModel;
 }
Esempio n. 8
0
 public CurrentGameView()
 {
     InitializeComponent();
     viewModel   = new CurrentGameViewModel();
     DataContext = viewModel;
 }