示例#1
0
 public Importer(DataTable dt, Language language, Wordtype wordtype, Language targetLanguage)
 {
     _dt = dt;
     _language = language;
     _wordtype = wordtype;
     _targetLanguage = targetLanguage;
 }
示例#2
0
 private Baseword GetOrCreateBaseword(string text, Wordtype wordtype, Language language)
 {
     var bwFrom = Baseword.FindByTextLanguageType(text.Trim(), language, wordtype);
     if (bwFrom == null)
     {
         bwFrom = new Baseword { Lang = language, WordType = wordtype, Text = text };
         bwFrom.Save();
     }
     return bwFrom;
 }
示例#3
0
 public WordtypeViewModel(Wordtype wordtype)
 {
     Id = wordtype.Id;
     Text = wordtype.Text;
 }