Пример #1
0
 /// <inheritdoc />
 /// <summary>
 /// Initializes a new instance of the <see cref="T:BridgePattern.Circle" /> class.
 /// </summary>
 /// <param name="drawApi">
 /// The draw API.
 /// </param>
 /// <param name="x">
 /// The x.
 /// </param>
 /// <param name="y">
 /// The y.
 /// </param>
 /// <param name="radius">
 /// The radius.
 /// </param>
 public Circle(int x, int y, int radius, IDrawApiBridgeImplementer drawApi)
     : base(drawApi)
 {
     this.x      = x;
     this.y      = y;
     this.radius = radius;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Shape"/> class.
 /// </summary>
 /// <param name="drawApi">
 /// The draw API.
 /// </param>
 protected Shape(IDrawApiBridgeImplementer drawApi)
 {
     this.DrawApi = drawApi;
 }