public void AppendTag(Tag queriedTag) { TagTarget tagTarget = new TagTarget() { Tag = queriedTag, Target = this }; TagTargets.Add(tagTarget); }
public void AssignToTarget(Target target) { TagTarget tagTarget = new TagTarget() { Tag = this, Target = target }; TagTargets.Add(tagTarget); }
public void DismissTarget(Target target) { TagTarget tagTarget = TagTargets.FirstOrDefault(tt => (tt.Tag == this && tt.Target == target)); if (tagTarget == null) { return; } TagTargets.Remove(tagTarget); }
public void RemoveTag(Tag queriedTag) { TagTarget tagTarget = TagTargets.SingleOrDefault(tt => tt.Tag == queriedTag); TagTargets.Remove(tagTarget); }