public void InitEditWordSynonyms(int language) { if (EditCardSynonyms == null) { EditCardSynonyms = new EditCardSynonyms(this, language == 1 ? txt_front.Text : txt_back.Text, language); } }
public void DisposeEditWordSynonyms() { if (EditCardSynonyms != null) { EditCardSynonyms.DialogResult = DialogResult.Cancel; EditCardSynonyms.Dispose(); EditCardSynonyms = null; } }
private void btn_editSynonymsBack_Click(object sender, EventArgs e) { InitEditWordSynonyms(2); if (EditCardSynonyms.ShowDialog() == DialogResult.OK) { BackSynonyms = EditCardSynonyms.Synonyms; QuizEditor.CheckFixEmptyCards(); } DisposeEditWordSynonyms(); }