public void AddKeywordToScene(Keywords k) { if (KeywordScene == null) { KeywordScene = new List <KeywordScene>(); } KeywordScene kw = new KeywordScene { Scenes = this, Keywords = k }; if (KeywordScene.Where(kz => kz.Keywords == k).Count() == 0) { KeywordScene.Add(kw); } }
public void DeleteKeyword(Keywords kw) { KeywordScene.ToList().RemoveAll(ks => ks.Keywords == kw); }