示例#1
0
 private void buttonSave_Click(object sender, EventArgs e)
 {
     if (_filePathUsers != null)
     {
         SettingsDocument doc = SettingsConverter.ConvertObjectToDocument(_settingsObject, _filePathUsers);
         doc.Save(_filePathUsers, SettingsFileOption.Encrypted);
         UpdateUsersSettings.SafeInvoke(this._settingsObject, e);
     }
 }
示例#2
0
 private void buttonSave_Click(object sender, EventArgs e)
 {
     if (_filePathUsers != null)
     {
         SettingsDocument doc = SettingsConverter.ConvertObjectToDocument(_settingsObject, _filePathUsers);
         doc.Save(_filePathUsers, SettingsFileOption.Encrypted);
         UpdateUsersSettings.SafeInvoke(this._settingsObject, e);
         Notify.PopUp("Configuration File Saved", "Updated settings have been saved to disk", "", "OK");
     }
 }