internal MeaningImpl(VocabularyImpl vocabulary) : base(vocabulary) { this.guid = Guid.NewGuid(); this.categories = new UniqueStringCollectionImpl(); this.categories.CollectionChanged += new NotifyCollectionChangedEventHandler(new NotifyCollectionPropertyChangedWrapper(this, "Categories").CollectionChanged); this.translations = new UniqueStringCollectionImpl(); this.translations.CollectionChanged += new NotifyCollectionChangedEventHandler(new NotifyCollectionPropertyChangedWrapper(this, "Translations").CollectionChanged); this.synonyms = new WordCollectionImpl(this); this.synonyms.CollectionChanged += new NotifyCollectionChangedEventHandler(new NotifyCollectionPropertyChangedWrapper(this, "Synonyms").CollectionChanged); this.antonyms = new WordCollectionImpl(this); this.antonyms.CollectionChanged += new NotifyCollectionChangedEventHandler(new NotifyCollectionPropertyChangedWrapper(this, "Antonyms").CollectionChanged); INotifyPropertyChanged npc = (INotifyPropertyChanged)vocabulary; npc.PropertyChanged += new PropertyChangedEventHandler(OnUserProfileChanged); }
internal LanguageImpl(VocabularyImpl vocabulary) : base(vocabulary) { this.Parent = vocabulary; }
internal WordImpl(VocabularyImpl vocabulary) : base(vocabulary) { this.meanings = new MeaningCollectionImpl(this); this.meanings.CollectionChanged += new NotifyCollectionChangedEventHandler(new NotifyCollectionPropertyChangedWrapper(this, "Meanings").CollectionChanged); }
protected VocabularyObject(VocabularyImpl vocabulary) { Debug.Assert(vocabulary != null); this.vocabulary = vocabulary; this.PropertyChanged += new PropertyChangedEventHandler(OnPropertyChanged); }
internal VocabularyWordCollectionImpl(VocabularyImpl vocabulary) { Debug.Assert(vocabulary != null); this.vocabulary = vocabulary; }