public void Render(Graphics.Graphics graphics) { switch (Mode) { case HandleMode.Resize: for (int i = 0; i < BRUSH_MANIPULATION_HANDLE_COUNT; i++) { SolidGrabHandle handle = mHandles[i]; graphics.DrawSolidRectangle(handle.BottomLeft, handle.BottomRight, handle.TopRight, handle.TopLeft, Color.White); } break; case HandleMode.Rotate: for (int i = 0; i < 4; i++) { SolidGrabHandle handle = mHandles[i]; graphics.DrawSolidCircle(handle.BottomLeft, handle.BottomRight, handle.TopRight, handle.TopLeft, Color.White); } break; case HandleMode.Skew: for (int i = 4; i < 8; i++) { SolidGrabHandle handle = mHandles[i]; graphics.DrawSolidRectangle(handle.BottomLeft, handle.BottomRight, handle.TopRight, handle.TopLeft, Color.White); } break; } }