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