private void btnAddSkill_Click(object sender, EventArgs e) { frm_AddSkill AddSkill = new frm_AddSkill(); AddSkill.SkillList = cSkills; AddSkill.ShowDialog(); ArrayList result = AddSkill.SelectedSkills; for (int i = 0; i < result.Count; i++) { if (!lstSkills.Items.Contains(result[i])) { lstSkills.Items.Add(result[i]); } } }
private void btnAddSkill_Click(object sender, EventArgs e) { frm_AddSkill AddSkill = new frm_AddSkill(); AddSkill.SkillList = cSkills; AddSkill.ShowDialog(); ArrayList result = AddSkill.SelectedSkills; for (int i = 0; i < result.Count; i++) if (!lstSkills.Items.Contains(result[i])) lstSkills.Items.Add(result[i]); }