private void MainMenuOption_Click(object sender, EventArgs e) { var dlg = new OptionDlg(_option); if (DialogResult.OK == dlg.ShowDialog()) { _option = dlg.Option; InitializeWebServer(); } }