void update_skills() { int level = (int)LevelBox.Value; SkillList.BeginUpdate(); SkillList.Items.Clear(); ListViewItem lvi_easy = SkillList.Items.Add("Easy"); lvi_easy.SubItems.Add(AI.GetSkillDC(Difficulty.Easy, level).ToString()); ListViewItem lvi_moderate = SkillList.Items.Add("Moderate"); lvi_moderate.SubItems.Add(AI.GetSkillDC(Difficulty.Moderate, level).ToString()); ListViewItem lvi_hard = SkillList.Items.Add("Hard"); lvi_hard.SubItems.Add(AI.GetSkillDC(Difficulty.Hard, level).ToString()); SkillList.EndUpdate(); DamageList.BeginUpdate(); DamageList.Items.Clear(); DamageList.ShowGroups = false; ListViewItem lvi_damage = DamageList.Items.Add("Against a single target"); lvi_damage.SubItems.Add(Statistics.NormalDamage(level)); lvi_damage.Group = DamageList.Groups[0]; ListViewItem lvi_multiple = DamageList.Items.Add("Against multiple targets"); lvi_multiple.SubItems.Add(Statistics.MultipleDamage(level)); lvi_multiple.Group = DamageList.Groups[0]; DamageList.EndUpdate(); }