コード例 #1
0
        private void Back_Click(object sender, RoutedEventArgs e)
        {
            PhrasalWord word = new PhrasalWord(Word.Text, Definition.Text, Example.Text);

            phrasalVerbs.WordList.Add(word);
            phrasalVerbs.SaveJson("phr.json");
            Frame rootFrame = Window.Current.Content as Frame;

            rootFrame.Navigate(typeof(vocabulary_intro), null);
        }
コード例 #2
0
        private void Next_Click(object sender, RoutedEventArgs e)
        {
            PhrasalWord word = new PhrasalWord(Word.Text, Definition.Text, Example.Text);

            if (Word.Text == "" || Definition.Text == "")
            {
                return;
            }
            phrasalVerbs.WordList.Add(word);
            Word.Text       = "";
            Example.Text    = "";
            Definition.Text = "";
        }