public NounViewModel(CyrCollectionContainer container, Application application) : base(application) { this.CyrNounCollection = container?.CyrNounCollection ?? throw new ArgumentNullException(nameof(CyrCollectionContainer.CyrNounCollection)); this.InitDropDowns(); }
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); }