public Preferences(string propertiesPath, string userPropertiesPath) { this._propertiesPath = (propertiesPath ?? Preferences.findFilePath("*.properties") ?? "Preferences.properties"); this._userPropertiesPath = (userPropertiesPath ?? Preferences.findFilePath("*.userproperties") ?? (Environment.UserName + ".userproperties")); this.Reload(); }
public void Reload() { this._properties = Preferences.loadProperties(this._propertiesPath); this._userProperties = Preferences.loadProperties(this._userPropertiesPath); }
public virtual void Configure(Preferences preferences) { this._preferences = preferences; }