示例#1
0
        public static void PlayerList(S.ToolPlayerList p)
        {
            if ((p.Players == null || p.Players.Count <= 0) &&
                SMForm.DebugLogs)
            {
                SMForm.OutputNLogs(string.Format("[PlayersOnline]Empty data\r\n"));
            }

            SMForm.UpdatePlayerList(p);
        }
示例#2
0
 public void UpdatePlayerList(S.ToolPlayerList p)
 {
     playerOnlineList.DataSource = null;
     playerOnlineList.Rows.Clear();
     for (int i = 0; i < p.Players.Count; i++)
     {
         playerOnlineList.Rows.Add(
             p.Players[i].PlayerName,
             p.Players[i].PlayerLevel,
             p.Players[i].PlayerGuild,
             p.Players[i].PlayerCurrentMap,
             p.Players[i].PlayerCurrentLocation,
             string.Format("{0:#,###,###,###}", p.Players[i].AccountGold),
             string.Format("{0:#,###,###,###}", p.Players[i].AccountCredit));
     }
 }