示例#1
0
        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);
        }
示例#2
0
        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);
        }