private void writeButton_Click(object sender, EventArgs e) { DictionaryOpenForm dictionaryOpenForm = new DictionaryOpenForm(); // открываем форму с открытием dictionary Visible = false; dictionaryOpenForm.ShowDialog(); WriteForm writeForm = new WriteForm(); writeForm.ShowDialog(); if (writeForm.backed) { Visible = true; } else if (writeForm.closed) { Close(); } }
private void button9_Click(object sender, EventArgs e) { WriteForm wf = new WriteForm(this); wf.ShowDialog(); }