Exemplo n.º 1
0
 public bool Equals(IrregularWord other)
 {
     if (this.infinitive == other.infinitive && this.pparticiple == other.pparticiple && this.psimple == other.psimple)
     {
         return(true);
     }
     return(false);
 }
Exemplo n.º 2
0
        private void Back_Click(object sender, RoutedEventArgs e)
        {
            IrregularWord word = new IrregularWord(Word.Text, Definition.Text, Example.Text);

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

            rootFrame.Navigate(typeof(vocabulary_intro), null);
        }
Exemplo n.º 3
0
        private void Next_Click(object sender, RoutedEventArgs e)
        {
            IrregularWord word = new IrregularWord(Word.Text, Definition.Text, Example.Text);

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