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