/// <summary> /// Removes the specified configuration from the folder. If the configuration /// is not in the folder, nothing is done and the method returns <c>False</c>. Otherwise, /// the specified configuration is removed and <c>True</c> is returned. /// </summary> /// <param name="cfg">The configuration to remove.</param> /// <returns></returns> public bool Remove(PluginConfiguration cfg) { var found = (from value in this.values where value.Id == cfg.Id select value).SingleOrDefault(); if (found == null) { return false; } else { this.values.Remove(found); return true; } }
/// <summary> /// Adds the specified plugin configuration into the configuration folder. /// </summary> /// <param name="configuration">The configuration.</param> public void Add(PluginConfiguration configuration) { this.values.Add(configuration); }
/// <summary> /// Adds the specified plugin configuration into the configuration folder. /// </summary> /// <param name="configuration">The configuration.</param> public void Add(PluginConfiguration configuration) { this.values.Add(configuration); }