private void Button_Click(object sender, RoutedEventArgs e) { WordPool.Add(new Word(PolishWord.Text.ToString(), EnglishWord.Text.ToString())); WordList window = new WordList(); window.Show(); this.Close(); }
public static void AddWord(string polish, string english) { WordPool.Add(new Word(polish, english)); }