/// <summary> /// Removes the specified DirectorySetting from the collection, if it exists. /// </summary> /// <param name="fileSetting">A DirectorySetting to remove.</param> public void Remove(DirectorySetting fileSetting) { int Index = base.IndexOf(fileSetting); if (Index >= 0) { BaseRemoveAt(Index); } }
/// <summary> /// Reads a directory item from the configuration node and returns a new instance of DirectorySetting. /// </summary> /// <param name="node">The XmlNode to read from.</param> /// <returns>A DirectorySetting initialized with values read from the node.</returns> protected DirectorySetting ReadDirectoryItem(XmlNode node) { // Create a DirectorySetting instance. DirectorySetting Item = new DirectorySetting(); // Read the typical attributes. ReadChildItem(node, Item); // Check for a recurse attribute. if (node.Attributes["recurse"] != null) { string Value = node.Attributes["recurse"].Value.ToLower(); Item.Recurse = (Value == "true" || Value == "yes" || Value == "on"); } return Item; }
/// <summary> /// Removes the specified DirectorySetting from the collection, if it exists. /// </summary> /// <param name="fileSetting">A DirectorySetting to remove.</param> public void Remove(DirectorySetting fileSetting) { int Index = base.IndexOf(fileSetting); if (Index >= 0) BaseRemoveAt(Index); }
/// <summary> /// Adds a DirectorySetting to the collection. /// </summary> /// <param name="fileSetting">An initialized DirectorySetting instance.</param> public void Add(DirectorySetting fileSetting) { BaseAdd(fileSetting); }
/// <summary> /// Removes an item from the collection. /// </summary> /// <param name="item">The item to remove.</param> public void Remove(DirectorySetting item) { List.Remove(item); }
/// <summary> /// Inserts an item into the collection at the specified index. /// </summary> /// <param name="index">The index to insert the item at.</param> /// <param name="item">The item to insert.</param> public void Insert(int index, DirectorySetting item) { List.Insert(index, item); }
/// <summary> /// Adds the item to the collection. /// </summary> /// <param name="item">The item to add.</param> public int Add(DirectorySetting item) { return(List.Add(item)); }
/// <summary> /// Adds the item to the collection. /// </summary> /// <param name="item">The item to add.</param> public int Add(DirectorySetting item) { return List.Add(item); }