private void Add() { if (IsSkillChecked) { if (SelectedSkill != null) { PlayerSkills.Add(new PlayerSkillViewModel(SelectedSkill, 0)); SkillPoints = SkillPoints - SelectedSkill.Cost; Skills.Remove(SelectedSkill); SelectedSkill = null; } } else { if (SelectedFeat != null) { PlayerFeats.Add(new PlayerFeatViewModel(SelectedFeat, 0)); FeatPoints = FeatPoints - SelectedFeat.Cost; Feats.Remove(SelectedFeat); SelectedFeat = null; } } Refresh(); }