public WallDashedBorderDecorator1(WallControl wall) : base(wall) { if (this.wall_parts.Count == 0 || wall_parts[0] == null) { throw new Exception("no ControlWithBorder in wall_parts"); } p1 = wall_parts[0]; DashColor = Color.Yellow; }
public WallSolidBorderDecorator1(WallControl wall) : base(wall) { if (this.wall_parts.Count == 0 || wall_parts[0] == null) { throw new Exception("no ControlWithBorder in wall_parts"); } p1 = wall_parts[0]; BorderColor = Color.Blue; }