/// <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, nameof(categories));

            foreach (VstParameterCategory paramCat in categories)
            {
                Add(paramCat);
            }
        }
Ejemplo n.º 2
0
        /// <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, nameof(categories));

            Categories = categories;
        }
Ejemplo n.º 3
0
        /// <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 NotifyCollectionChangedEventHandler(Parameters_CollectionChanged);
        }