public bool Equals(IrregularWord other)
 {
     if (this.infinitive == other.infinitive && this.pparticiple == other.pparticiple && this.psimple == other.psimple)
     {
         return(true);
     }
     return(false);
 }
Exemple #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);
        }
Exemple #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 = "";
        }