private void GenerateFollowers() { this.currentFollowers = new List <Follower>(); this.favoriteFollowers = new List <Follower>(); List <int> abilities; List <int> traits; foreach (DataRow row in this.TableFollowers.Rows) { abilities = new List <int>(); abilities.Add(Convert.ToInt16(row["技能ID1"])); if (Convert.ToInt16(row["品质"]) == 4) { abilities.Add(Convert.ToInt16(row["技能ID2"])); } traits = new List <int>(); traits.Add(Convert.ToInt16(row["特长ID1"])); if (Convert.ToInt16(row["品质"]) > 2) { traits.Add(Convert.ToInt16(row["特长ID2"])); } if (Convert.ToInt16(row["品质"]) > 3) { traits.Add(Convert.ToInt16(row["特长ID3"])); } this.currentFollowers.Add(new Follower(row["ID"].ToString(), row["姓名"].ToString(), Convert.ToInt16(row["品质"]), Convert.ToInt16(row["等级"]), Convert.ToInt16(row["装等"]), row["种族"].ToString(), Follower.GetClassBySpec(Convert.ToInt16(row["职业ID"])), row["职业"].ToString(), Convert.ToInt16(row["激活"]), abilities, traits)); } this.followerRows.Children.Clear(); this.AddEpicFollowers(); this.AddFollowers(); this.followerDetailPanel.AssignFollowers(this.currentFollowers); this.followerDetailPanel.LoadFile(); this.analysisPanel.AssignFollowers(ref this.currentFollowers, ref this.favoriteFollowers, this.followerDetailPanel.listAli, this.followerDetailPanel.listHrd); }