Exemplo n.º 1
0
 private CreateGamePageViewModel(GameChoiceServiceClient gameService, MapServiceClient mapService)
 {
     _gameService      = gameService;
     _mapService       = mapService;
     Maps              = new ObservableCollection <CMapInfo>();
     CreateGameCommand = new CRelayCommand(CreateGameExecute, CreateGameCanExecute);
 }
Exemplo n.º 2
0
 private SelectGamePageViewModel(GameChoiceServiceClient gameService)
 {
     _gameService   = gameService;
     Games          = new ObservableCollection <CGameInfo>();
     ConnectCommand = new CRelayCommand(ConnectExecute, ConnectCanExecute);
     RefreshCommand = new CRelayCommand(RefreshExecute);
 }
Exemplo n.º 3
0
 private GameChoiceProvider()
 {
     Callback = new CGameChoiceServiceCallback();
     Service  = new GameChoiceServiceClient(new InstanceContext(Callback), "NetTcpBinding_IGameChoiceService");
 }