コード例 #1
0
ファイル: Classes.cs プロジェクト: andrey-kozyrev/LinguaSpace
        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);
        }
コード例 #2
0
ファイル: Classes.cs プロジェクト: andrey-kozyrev/LinguaSpace
 internal LanguageImpl(VocabularyImpl vocabulary)
     : base(vocabulary)
 {
     this.Parent = vocabulary;
 }
コード例 #3
0
ファイル: Classes.cs プロジェクト: andrey-kozyrev/LinguaSpace
 internal WordImpl(VocabularyImpl vocabulary)
     : base(vocabulary)
 {
     this.meanings = new MeaningCollectionImpl(this);
     this.meanings.CollectionChanged += new NotifyCollectionChangedEventHandler(new NotifyCollectionPropertyChangedWrapper(this, "Meanings").CollectionChanged);
 }
コード例 #4
0
ファイル: Classes.cs プロジェクト: andrey-kozyrev/LinguaSpace
 protected VocabularyObject(VocabularyImpl vocabulary)
 {
     Debug.Assert(vocabulary != null);
     this.vocabulary = vocabulary;
     this.PropertyChanged += new PropertyChangedEventHandler(OnPropertyChanged);
 }
コード例 #5
0
ファイル: Classes.cs プロジェクト: andrey-kozyrev/LinguaSpace
 internal VocabularyWordCollectionImpl(VocabularyImpl vocabulary)
 {
     Debug.Assert(vocabulary != null);
     this.vocabulary = vocabulary;
 }