コード例 #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();
 }
コード例 #2
0
 public void Reload()
 {
     this._properties     = Preferences.loadProperties(this._propertiesPath);
     this._userProperties = Preferences.loadProperties(this._userPropertiesPath);
 }
コード例 #3
0
 public virtual void Configure(Preferences preferences)
 {
     this._preferences = preferences;
 }