SANTA.IO.ConfigReader.setValue C# (CSharp) Méthode

setValue() public méthode

public setValue ( string key, string value ) : bool
key string
value string
Résultat bool
        public bool setValue(string key, string value)
        {
            ConfigSettings.loadConfigDocument();
            ConfigSettings.WriteSetting(key, value);
            return true;
        }

Usage Example

Exemple #1
0
 /// <summary>
 /// Constructs a <code>Master</code> object by initializing the
 /// <code>ConfigReader</code> and the <code>UIController</code>.
 /// </summary>
 public Master()
 {
     _configReader = new ConfigReader();
     bool firstUse = _configReader.getValue("First Use").Equals("True");
     if (firstUse) {
         _configReader.setValue("First Use", "False");
     }
     new UIController(this, firstUse);
 }