public async Task fillWordBaseDetails(WordBase wb) { classes.WordBase wbout = new classes.WordBase(); if (_WordBase.TryGetValue(wb.baseWordXml, out wbout) != false) { Task <(List <Meaning>, classes.WordForm_Overload)> tm = Implementation.LODConnector.FetchWordDetails(wb.baseWordXml); (wb.meanings, wb.wordForm) = await tm; } }
public async Task insertBaseWords(List <string> xml, List <string> mp3, List <string> occs) { int i = 0; foreach (string thisXml in xml) { classes.WordBase outer = new classes.WordBase(); if (!wordBase.TryGetValue(thisXml, out outer)) { //doesn't exists, so at it outer = new classes.WordBase(thisXml); outer.baseMp3 = mp3[i]; outer.baseWordLu = occs[i]; wordBase.Add(thisXml, outer); var taskFillWordBaseDetails = frmMainProgram.getInstance()._articleFile.article.fillWordBaseDetails(outer); await taskFillWordBaseDetails; } i++; } }