private void btnReleaseNotes_Click(object sender, EventArgs e) { Log("View release notes start"); using (var dialog = new ReleaseNotesDialog()) { dialog.ShowDialog(); } Log("View release notes end"); }