Beispiel #1
0
 private static void OnReorderSettingsDialogConfirmed(bool isSwapByClickOrder, SwapReference swapReferencePoint)
 {
     IsSwapByClickOrder = isSwapByClickOrder;
     SwapReferencePoint = swapReferencePoint;
 }
 private static Drawing.PointF GetSwapReferencePoint(PPShape shape, SwapReference r)
 {
     switch (r)
     {
         case SwapReference.TopLeft:
             return shape.VisualTopLeft;
         case SwapReference.TopCenter:
             return shape.VisualTopCenter;
         case SwapReference.TopRight:
             return shape.VisualTopRight;
         case SwapReference.MiddleLeft:
             return shape.VisualMiddleLeft;
         case SwapReference.MiddleCenter:
             return shape.VisualCenter;
         case SwapReference.MiddleRight:
             return shape.VisualMiddleRight;
         case SwapReference.BottomLeft:
             return shape.VisualBottomLeft;
         case SwapReference.BottomCenter:
             return shape.VisualBottomCenter;
         case SwapReference.BottomRight:
             return shape.VisualBottomRight;
         default:
             return shape.VisualCenter;
     }
 }