Ejemplo n.º 1
0
        private Dictionary <string, Word> InisiliezeDictionary()
        {
            DataTable table = EnglishStudyDB.GetTableToDictionary();

            foreach (DataRow item in table.Rows)
            {
                _dictionary.Add(item["sourceImage"].ToString(),
                                new Word(item["ukrWord"].ToString(), item["englishWord"].ToString(), item["transkription"].ToString()));
            }

            return(_dictionary);
        }
Ejemplo n.º 2
0
        public ResultLearningVM()
        {
            _collection = new ObservableCollection <Word>();

            foreach (var item in data.GetDictionary)
            {
                _collection.Add(new Word(item.Value.WordUkr, item.Value.WordEngl, Word.MarksArray[_index].ToString() + "/3", item.Key));
                _index++;
            }

            EnglishStudyDB.UpdateStatus();
        }
Ejemplo n.º 3
0
 public AddWordsVM()
 {
     Table = EnglishStudyDB.GetTable();
     // AddWords();
 }