/// <summary> /// Create a new Arrow object. /// </summary> /// <param name="parent">The parent (container) of this object.</param> /// <param name="arrowsColorSetter">Interface to set the colors in the parent object.</param> /// <param name="index">Index of this arrow in his parent.</param> /// <param name="color">The represented color.</param> public Arrow(Arrows parent, IArrowsColorSetter arrowsColorSetter, int index, ColorHSV color) { this.parent = parent; this.arrowsColorSetter = arrowsColorSetter; this.index = index; this.color = color; this.parent.SetArrowColorSetter(index, new ArrowColorSetter(this)); }
public ArrowsColorSetter(Arrows parent) { this.parent = parent; }