private void preferencesToolStripMenuItem_Click(object sender, EventArgs e) { var preferencesForm = new PreferencesForm() { TopLevel = true }; if (preferencesForm.ShowDialog() == DialogResult.OK) { var startOnSystemStart = preferencesForm.checkBoxRunOnStartup.Checked; if (startOnSystemStart) { TraceOps.Out("Set PaceServer Preferences.\r\n"); } } }