예제 #1
0
 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;
 }
예제 #2
0
 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;
 }