private void SkillList_DoubleClick(object sender, EventArgs e) { if (this.SelectedSkill != null) { int skillData = this.fChallenge.Skills.IndexOf(this.SelectedSkill); SkillChallengeSkillForm skillChallengeSkillForm = new SkillChallengeSkillForm(this.SelectedSkill); if (skillChallengeSkillForm.ShowDialog() == DialogResult.OK) { this.fChallenge.Skills[skillData] = skillChallengeSkillForm.SkillData; this.update_view(); } } }
private void SkillList_DoubleClick(object sender, EventArgs e) { if (SelectedSkill != null) { int index = fChallenge.Skills.IndexOf(SelectedSkill); SkillChallengeSkillForm dlg = new SkillChallengeSkillForm(SelectedSkill); if (dlg.ShowDialog() == DialogResult.OK) { fChallenge.Skills[index] = dlg.SkillData; update_view(); } } }