public TrapSkillForm(TrapSkillData tsd, int level) { this.InitializeComponent(); foreach (string skillName in Skills.GetSkillNames()) { this.SkillBox.Items.Add(skillName); } Application.Idle += new EventHandler(this.Application_Idle); this.fSkillData = tsd.Copy(); this.fLevel = level; this.SkillBox.Text = this.fSkillData.SkillName; this.DCBtn.Checked = this.fSkillData.DC != 0; this.DCBox.Value = this.fSkillData.DC; this.DetailsBox.Text = this.fSkillData.Details; this.update_advice(); }
public TrapSkillForm(TrapSkillData tsd, int level) { InitializeComponent(); List <string> skills = Skills.GetSkillNames(); foreach (string skill in skills) { SkillBox.Items.Add(skill); } Application.Idle += new EventHandler(Application_Idle); fSkillData = tsd.Copy(); fLevel = level; SkillBox.Text = fSkillData.SkillName; DCBtn.Checked = (fSkillData.DC != 0); DCBox.Value = fSkillData.DC; DetailsBox.Text = fSkillData.Details; update_advice(); }