public static void ShowException(Exception ex) { using (var box = new AboutBox()) { MessageBox.Show(ex.Message, box.AssemblyTitle, MessageBoxButtons.OK, MessageBoxIcon.Error); } }
/// <summary> /// コマンド AboutBox /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void uiMenuAbout_Click(object sender, EventArgs e) { using (var box = new AboutBox()) { box.ShowDialog(); } }