Exemple #1
0
        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);
            }
        }
Exemple #2
0
 public void DeleteKeyword(Keywords kw)
 {
     KeywordScene.ToList().RemoveAll(ks => ks.Keywords == kw);
 }