private void OpenSSHDebugConfigDlg(object sender, EventArgs e) { var dlg = new DebugSettings(); if (dlg.ShowDialog().GetValueOrDefault()) { // Saved } }