Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 public void Reload()
 {
     this._properties     = Preferences.loadProperties(this._propertiesPath);
     this._userProperties = Preferences.loadProperties(this._userPropertiesPath);
 }
 public virtual void Configure(Preferences preferences)
 {
     this._preferences = preferences;
 }