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