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