public LanguageController(Language language)
        {
            if (language != null)
            {
                this.languageInfo = language;
                this.words        = JSONParser <Word> .ReadJson(Constants.FileFolder + this.languageInfo.ID + Constants.Extension);

                this.views = new ObservableCollection <Word>(this.words);
            }
            else
            {
                throw new ArgumentException("Language is not valid.");
            }
        }
Example #2
0
 public DictionaryController()
 {
     languages = JSONParser <Language> .ReadJson(Constants.FileFolder + Constants.MainFile);
 }