public string FindSkillProficiency(Dictionaries.SkillTypes input) { if (SkillProficiencies.Count != 0) { if (SkillProficiencies.Contains(input)) { StringBuilder output = new StringBuilder(); foreach (Dictionaries.SkillTypes SkillProficiency in SkillProficiencies) { if (input == SkillProficiency) { output.AppendLine($"{SkillProficiency}"); } } return(output.ToString()); } else { return("This skill proficiency is not in this list"); } } else { return("The list of skill proficiencies is empty"); } }
public bool RemoveSkillProficiency(Dictionaries.SkillTypes input) { if (SkillProficiencies.Contains(input)) { SkillProficiencies.Remove(input); return(true); } else { return(false); } }
public bool AddSkillProficiency(Dictionaries.SkillTypes input) { if (SkillProficiencies.Contains(input)) { return(false); } else { SkillProficiencies.Add(input); return(true); } }