Ejemplo n.º 1
0
        public static void NewSpectator(Player user)
        {
            user.Send("You:" + user.Name);
            Spectator spectator = new Spectator();

            spectator.NewSpectator(user.Client, user.Name, CurrentTournament, f1);
            AllSpectators.Add(spectator);
            AllSpectatorsNames.Add(user.Name);
            f1.SpectatorChanged();
        }
Ejemplo n.º 2
0
 public void WaitingSpectator(Player player)
 {
     try
     {
         Spectator s = new Spectator();
         player.spectator = s;
         s.NewSpectator(player.Client, player.Name, this, f1);
         Program.AllSpectators.Add(s);
         f1.SpectatorChanged();
     }
     catch (Exception) { }
 }