private void SetAttribute(string name, object value) { if (value == null) { XmlHelper.RemoveAttribute(configNode, name); } else { XmlHelper.SetAttribute(configNode, name, value); } }
public void SetSettingsAttribute(string name, string value) { if (value == null) { RemoveSettingsAttribute(name); } else { if (SettingsNode == null) { XmlHelper.InsertElement(RootNode, "Settings", 0); } XmlHelper.SetAttribute(SettingsNode, name, value); } }
public string this[int index] { get { return(XmlHelper.GetAttribute(AssemblyNodes[index], "path")); } set { XmlHelper.SetAttribute(AssemblyNodes[index], "path", value); } }