Exemplo n.º 1
0
        private void learningButton_Click(object sender, EventArgs e)
        {
            LearningForm learningForm = new LearningForm();

            learningForm.Owner = this;
            learningForm.Show();
            this.Visible = false;
        }
Exemplo n.º 2
0
        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();
        }