private void Back_Click(object sender, RoutedEventArgs e) { Vocabulay.SaveJson("voc.json"); Frame rootFrame = Window.Current.Content as Frame; rootFrame.Navigate(typeof(vocabulary_intro), null); }
private void Back_Click(object sender, RoutedEventArgs e) { VocabularyWord word = new VocabularyWord(Word.Text, Definition.Text, Example.Text); Vocabulay.WordList.Add(word); Vocabulay.SaveJson("voc.json"); Frame rootFrame = Window.Current.Content as Frame; rootFrame.Navigate(typeof(vocabulary_intro), null); }