internal void loadProfile(string user) { _form.Hide(); if (lp == null) { lp = new LobbyPresenter(this, user); } else { lp.Show(); } }
public GamePresenter(LobbyPresenter _preview, String User, int numBot, String difficulty) { _user = User; _numBot = numBot; _diff = difficulty; _prevPresenter = _preview; List <IPlayer> _players = PlayerFactory.getInstance(numBot, User, difficulty); _game = GameFactory.getGameInstance(_players); _game.OnGameEnd += new EventHandler(OnGameEnd); _game.Scoreboard.CombinationApplied += new EventHandler(OnCombinationApplied); _game.Dices.DicesRolled += new EventHandler <RollEventArgs>(OnDiceRolled); _game.Dices.DiceKept += new EventHandler <KeepEventArgs>(OnDiceKept); _game.CurrentPlayerTurn.FinishedRolls += OnFinishedRolls; _game.PlayerTurnEnd += OnPlayerTurnEnded; _game.PlayerTurnStarted += OnPlayerTurnStarted; }
public StatisticsPresenter(LobbyPresenter prevPresenter) { _prevPresenter = prevPresenter; sf = new StatisticsForm(this); sf.Show(); }