private void mmResearch_Click(object sender, EventArgs e) { if (inProcess) { MessageBox.Show("Распознавание прервано"); BtnStop_Click(sender, e); } DWTTest TestForm = new DWTTest(); TestForm.ShowDialog(); }