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