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); } }
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"); } }