public SetConfigOption ( string name, string content ) : void | ||
name | string | |
content | string | |
return | void |
public void SetConfigOption(string name, string content)
{
XmlNode node = SelectSingleNode ("/sparkleshare/" + name);
if (node != null) {
node.InnerText = content;
} else {
node = CreateElement (name);
node.InnerText = content;
XmlNode node_root = SelectSingleNode ("/sparkleshare");
node_root.AppendChild (node);
}
Save ();
SparkleLogger.LogInfo ("Config", "Updated option " + name + ":" + content);
}