Esempio n. 1
0
 public Point GetShadowHotspot(WFSLHotspotType wf11HotspotType)
 {
     Point point = new Point(0, 0);
     switch (wf11HotspotType)
     {
         case WFSLHotspotType.Left:
             point.X = (double)Canvas.GetLeft(Shadow);
             point.Y = (double)Canvas.GetTop(Shadow) + Shadow.Height / 2;
             break;
         case WFSLHotspotType.Top:
             point.X = (double)Canvas.GetLeft(Shadow) + Shadow.Width / 2;
             point.Y = (double)Canvas.GetTop(Shadow);
             break;
         case WFSLHotspotType.Right:
             point.X = (double)Canvas.GetLeft(Shadow) + Shadow.Width;
             point.Y = (double)Canvas.GetTop(Shadow) + Shadow.Height / 2;
             break;
         case WFSLHotspotType.Bottom:
             point.X = (double)Canvas.GetLeft(Shadow) + Shadow.Width / 2;
             point.Y = (double)Canvas.GetTop(Shadow) + Shadow.Height;
             break;
     }
     return point;
 }
Esempio n. 2
0
 public Point GetHotspot(WFSLHotspotType wf11HotspotType)
 {
     Point point = new Point(0, 0);
     switch (wf11HotspotType)
     {
         case WFSLHotspotType.Left:
             point.X = (double)Canvas.GetLeft(wfFinishShape) + wfFinishShape.HotspotLeft.Width / 2;
             point.Y = (double)Canvas.GetTop(wfFinishShape) + wfFinishShape.Height / 2;
             break;
         case WFSLHotspotType.Top:
             point.X = (double)Canvas.GetLeft(wfFinishShape) + wfFinishShape.Width / 2;
             point.Y = (double)Canvas.GetTop(wfFinishShape) + wfFinishShape.HotspotLeft.Height / 2;
             break;
         case WFSLHotspotType.Right:
             point.X = (double)Canvas.GetLeft(wfFinishShape) + wfFinishShape.Width - wfFinishShape.HotspotLeft.Width / 2;
             point.Y = (double)Canvas.GetTop(wfFinishShape) + wfFinishShape.Height / 2;
             break;
         case WFSLHotspotType.Bottom:
             point.X = (double)Canvas.GetLeft(wfFinishShape) + wfFinishShape.Width / 2;
             point.Y = (double)Canvas.GetTop(wfFinishShape) + wfFinishShape.Height - wfFinishShape.HotspotLeft.Height / 2;
             break;
     }
     return point;
 }
Esempio n. 3
0
 public Point GetHotspot(WFSLHotspotType wf11HotspotType)
 {
     Point point = new Point(0, 0);
     switch (wf11HotspotType)
     {
         case WFSLHotspotType.Left:
             point.X = wfslLineShape.plShadow.Points[0].X;
             point.Y = wfslLineShape.plShadow.Points[0].Y;
             break;
         case WFSLHotspotType.Top:
             point.X = wfslLineShape.plShadow.Points[0].X;
             point.Y = wfslLineShape.plShadow.Points[0].Y;
             break;
         case WFSLHotspotType.Right:
             point.X = wfslLineShape.plShadow.Points[3].X;
             point.Y = wfslLineShape.plShadow.Points[3].Y;
             break;
         case WFSLHotspotType.Bottom:
             point.X = wfslLineShape.plShadow.Points[3].X;
             point.Y = wfslLineShape.plShadow.Points[3].Y;
             break;
     }
     return point;
 }
Esempio n. 4
0
 public Point GetShadowHotspot(WFSLHotspotType wf11HotspotType)
 {
     return GetHotspot(wf11HotspotType);
 }
Esempio n. 5
0
 public Point GetShadowHotspot(WFSLHotspotType wfslHotspotType)
 {
     Point point = new Point(0, 0);
     switch (wfslHotspotType)
     {
         case WFSLHotspotType.Left:
             point.X = (double)Canvas.GetLeft(Shadow);
             point.Y = (double)Canvas.GetTop(Shadow) + wfConditionShape.Height / 2 - this._ShadowY;
             break;
         case WFSLHotspotType.Top:
             point.X = (double)Canvas.GetLeft(Shadow) + wfConditionShape.Width / 2 - this._ShadowX;
             point.Y = (double)Canvas.GetTop(Shadow);
             break;
         case WFSLHotspotType.Right:
             point.X = (double)Canvas.GetLeft(Shadow) + wfConditionShape.Width - this._ShadowX * 2;
             point.Y = (double)Canvas.GetTop(Shadow) + wfConditionShape.Height / 2 - this._ShadowY;
             break;
         case WFSLHotspotType.Bottom:
             point.X = (double)Canvas.GetLeft(Shadow) + wfConditionShape.Width / 2 - this._ShadowX;
             point.Y = (double)Canvas.GetTop(Shadow) + wfConditionShape.Height - this._ShadowY * 2;
             break;
     }
     return point;
 }