/// <summary> /// Removes the specified FileSetting from the collection, if it exists. /// </summary> /// <param name="fileSetting">A FileSetting to remove.</param> public void Remove(FileSetting fileSetting) { int Index = base.IndexOf(fileSetting); if (Index >= 0) { BaseRemoveAt(Index); } }
/// <summary> /// Reads a file item from the configuration node and returns a new instance of FileSetting. /// </summary> /// <param name="node">The XmlNode to read from.</param> /// <returns>A FileSetting initialized with values read from the node.</returns> protected FileSetting ReadFileItem(XmlNode node) { // Create a FileSetting instance. FileSetting Item = new FileSetting(); // Read the typical attributes. ReadChildItem(node, Item); return Item; }
/// <summary> /// Removes the specified FileSetting from the collection, if it exists. /// </summary> /// <param name="fileSetting">A FileSetting to remove.</param> public void Remove(FileSetting fileSetting) { int Index = base.IndexOf(fileSetting); if (Index >= 0) BaseRemoveAt(Index); }
/// <summary> /// Adds a FileSetting to the collection. /// </summary> /// <param name="fileSetting">An initialized FileSetting instance.</param> public void Add(FileSetting fileSetting) { BaseAdd(fileSetting); }
/// <summary> /// Removes an item from the collection. /// </summary> /// <param name="item">The item to remove.</param> public void Remove(FileSetting 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, FileSetting item) { List.Insert(index, item); }
/// <summary> /// Adds the item to the collection. /// </summary> /// <param name="item">The item to add.</param> public int Add(FileSetting item) { return(List.Add(item)); }
/// <summary> /// Adds the item to the collection. /// </summary> /// <param name="item">The item to add.</param> public int Add(FileSetting item) { return List.Add(item); }