private void ConfigForm_FormClosing(object sender, FormClosingEventArgs e) { if (_shallSave && MessageService.AskQuestion("Save changes?")) { ExternalToolsCfg.Save(); _shallSave = false; DialogResult = DialogResult.OK; } }
private void btnOk_Click(object sender, EventArgs e) { if (_shallSave) { ExternalToolsCfg.Save(); _shallSave = false; DialogResult = DialogResult.OK; } else { DialogResult = DialogResult.Ignore; } }
public bool SaveContent() { ExternalToolsCfg.Save(); return(true); }