Beispiel #1
0
 /// <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));
 }
Beispiel #2
0
 public ArrowsColorSetter(Arrows parent)
 {
     this.parent = parent;
 }