public void LoadUsers() { _usersPath = this.UsersSettingsFilePath; _settingsDoc = new SettingsDocument(); _settingsDoc.Load(_usersPath, SettingsFileOption.Encrypted); SettingsConverter.UpdateObjectFromNode(this.getUserAccessSettings(), _settingsDoc); }
/// <summary> /// Loads settings from settings document. /// </summary> protected virtual void OnLoad() { if (SettingsDocument == null) { SettingsDocument = new SettingsDocument(FilePath); } else { SettingsDocument.Load(FilePath); } }
public void LoadUsers() { _settingsDoc = new SettingsDocument(); _settingsDoc.Load(CommonFunctions.Instance._usersPath, SettingsFileOption.Encrypted); SettingsConverter.UpdateObjectFromNode(this.getUserAccessSettings(), _settingsDoc); }