/// <summary> /// Adds all instances in the <paramref name="categories"/> collection to this instance. /// </summary> /// <param name="categories">Must not be null.</param> public void AddRange(VstParameterCategoryCollection categories) { Throw.IfArgumentIsNull(categories, "categories"); foreach (VstParameterCategory paramCat in categories) { Add(paramCat); } }
/// <summary> /// Constructs a new instance based on a collection of parameter <paramref name="categories"/>. /// </summary> /// <param name="categories">Must not be null.</param> public VstProgram(VstParameterCategoryCollection categories) { Throw.IfArgumentIsNull(categories, "categories"); Categories = categories; }
/// <summary> /// Constructs a new instance. /// </summary> /// <remarks>The <see cref="Categories"/> are automatically filled as <see cref="VstParameter"/> instances /// are added to the <see cref="Parameters"/> collection.</remarks> public VstProgram() { Categories = new VstParameterCategoryCollection(); Parameters.CollectionChanged += new EventHandler <NotifyCollectionChangedEventArgs>(Parameters_CollectionChanged); }