private void learningButton_Click(object sender, EventArgs e) { LearningForm learningForm = new LearningForm(); learningForm.Owner = this; learningForm.Show(); this.Visible = false; }
public void StartLearning(LanguageDictionary languageDictionary, Form parentForm) { foreach (LanguageDictionary langDic in vocabularies) { if (langDic.IsEnglishTo) { currentDictionary = langDic; break; } } LearningForm lForm = new LearningForm(this); lForm.FormClosing += delegate { parentForm.Visible = true; }; parentForm.Visible = false; lForm.Show(); }