Beispiel #1
0
 private void refreshServerInfo(Server S)
 {
     this.hostnameLabel.Text  = S.Hostname;
     this.gametypeLabel.Text  = S.getGametype();
     this.modLabel.Text       = S.Mod;
     this.playersLabel.Text   = S.currentPlayers + "/" + S.maxPlayers;
     this.serverMapLabel.Text = S.getMapName();
     this.playerListBox.Items.Clear();
     foreach (Player P in S.Players)
     {
         if (P.Name != null)
         {
             this.playerListBox.Items.Add(P);
         }
     }
 }
Beispiel #2
0
 private void refreshServerInfo(Server S)
 {
     this.hostnameLabel.Text = S.Hostname;
     this.gametypeLabel.Text = S.getGametype();
     this.modLabel.Text = S.Mod;
     this.playersLabel.Text = S.currentPlayers + "/" + S.maxPlayers;
     this.serverMapLabel.Text = S.getMapName();
     this.playerListBox.Items.Clear();
     foreach (Player P in S.Players)
         if (P.Name != null)
             this.playerListBox.Items.Add(P);
 }