private void setUpdateCheckUrlToolStripMenuItem_Click(object sender, EventArgs e) { using (DebugOptionsDialog dialog = new DebugOptionsDialog()) { dialog.UpdateCheckServiceUrl.Text = Settings.Default.AxCrypt2VersionCheckUrl.ToString(); DialogResult result = dialog.ShowDialog(); if (result != DialogResult.OK) { return; } Settings.Default.AxCrypt2VersionCheckUrl = new Uri(dialog.UpdateCheckServiceUrl.Text); } }