private void CreateMode()
        {
            int id = _connexion.InitGameMode(((GameModeInfo)GameModeInfos.CurrentItem).Name);

            _service.SetCurrentGameMode(id, ((GameModeInfo)GameModeInfos.CurrentItem).Name);
            _eventAggregator.GetEvent <ChangeViewMainRegionEvent>().Publish(ViewNames.AttenteMenu);
        }
        private void JoinGame()
        {
            StopTimer();
            CurrentGameMode gameMode = this.CurrentGameModes.CurrentItem as CurrentGameMode;

            _service.SetCurrentGameMode(gameMode);
            if (_connexion.AddPlayerToGame(gameMode.Id, _service.GetCurrentPlayer().Id))
            {
                _eventAggregator.GetEvent <ChangeViewMainRegionEvent>().Publish(ViewNames.MainViewGame);
            }
            else
            {
                _eventAggregator.GetEvent <ChangeViewMainRegionEvent>().Publish(ViewNames.AttenteMenu);
            }
        }