Example #1
0
 public NounViewModel(CyrCollectionContainer container, Application application) : base(application)
 {
     this.CyrNounCollection = container?.CyrNounCollection ?? throw new ArgumentNullException(nameof(CyrCollectionContainer.CyrNounCollection));
     this.InitDropDowns();
 }
Example #2
0
 public PhraseViewModel(CyrCollectionContainer container, Application application) : base(application)
 {
     this.CyrNounCollection      = container?.CyrNounCollection ?? throw new ArgumentNullException(nameof(CyrCollectionContainer.CyrNounCollection));
     this.CyrAdjectiveCollection = container?.CyrAdjectiveCollection ?? throw new ArgumentNullException(nameof(CyrCollectionContainer.CyrAdjectiveCollection));
     this.CyrPhrase = new CyrPhrase(this.CyrNounCollection, this.CyrAdjectiveCollection);
 }