public ViewModelData() { englishWord = new EnglishWord(); aWord = new UAWord(); SaveData = new Command(Save); Collection = new ObservableCollection <UAWord>(); }
public void SetUpConnection(EnglishWord word, UAWord uAWord) { word.uaword.Add(uAWord); db.SaveChanges(); db.Database.CloseConnection(); }
public void SaveUaItem(UAWord word) { db.Uaword.Add(word); }