protected override void ApplicationToolStripMenuItem_Click(object sender, EventArgs e) { using (AboutApplicationForm form = new AboutApplicationForm()) { if (form.ShowDialog() == DialogResult.OK) { } } }
/// <summary> /// Обработчик события нажатия на кнопку меню "О приложении" /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnAboutApplicationMenuButtonClicked(object sender, EventArgs e) { var form = new AboutApplicationForm(); form.ShowDialog(this); }