private void расселениеToolStripMenuItem_Click(object sender, EventArgs e) { RasselenieForm form5 = new RasselenieForm(); form5.Text = "Расселение"; form5.ShowDialog(); }
private void Rasselenie_ToolStripMenuItem_Click(object sender, EventArgs e) { RasselenieForm rasselenieForm = new RasselenieForm(); rasselenieForm.Text = "Рассиление"; try { rasselenieForm.ShowDialog(); } catch (Exception ex) { MessageBox.Show("Ошибка: " + ex.Message, "Ошибка", MessageBoxButtons.OK); } }