public void DoSkillTree() { // Skill tree // Key = name of the skill as stored in CurrentWSG.SkillNames // Text = human readable display name of the skill SkillTree.BeginUpdate(); TreeModel model = new TreeModel(); SkillTree.Model = model; Util.SetNumericUpDown(SkillLevel, 0); Util.SetNumericUpDown(SkillExp, 0); SkillActive.SelectedItem = "No"; for (int build = 0; build < CurrentWSG.NumberOfSkills; build++) { ColoredTextNode node = new ColoredTextNode(); string key = CurrentWSG.SkillNames[build]; node.Key = key; string name = SkillsAllXml.XmlReadValue(key, "SkillName"); if (name != "") { node.Text = name; } else { node.Text = CurrentWSG.SkillNames[build]; } model.Nodes.Add(node); } SkillTree.EndUpdate(); }