Exemplo n.º 1
0
        public TennisGame(List <TennisPlayer> players, TennisReferee referee)
        {
            this.players = players;
            this.referee = referee;

            this.initComponents();
        }
Exemplo n.º 2
0
        public TennisGame(EventReferee eventReferee)
        {
            players.Add(new TennisPlayer("player1"));
            players.Add(new TennisPlayer("player2"));
            this.referee = new TennisReferee(eventReferee);

            this.initComponents();
        }