/// <summary> /// Initializes a new instance of the <see cref="GradientColorPickerItem"/> class. /// </summary> /// <param name="owner">The <see cref="GradientColorPicker"/> instance.</param> /// <param name="color">The item <see cref="Color"/>.</param> public GradientColorPickerItem(GradientColorPicker owner, Color color) : this() { this.owner = owner ?? throw new ArgumentNullException("owner"); this.color = color; Width = owner.ColorItemWidth; Height = owner.ColorItemHeight; }
/// <summary> /// Initializes a new instance of the <see cref="GradientColorPickerItemCollection"/> class. /// </summary> /// <param name="owner">The <see cref="GradientColorPicker"/></param> public GradientColorPickerItemCollection(GradientColorPicker owner) { Owner = owner ?? throw new ArgumentNullException("owner"); }