private void drawEndPoint(Device device, float x, float y, Color colorWithAlpha)
{
Line line = GraphicViewManager.Instance.ResourceManager.SnapLines[0];
int midWidth = 5;
line.Begin();
line.Draw(new Vector2[] { new Vector2(x - midWidth, y - midWidth), new Vector2(x + midWidth, y - midWidth) }, colorWithAlpha);
line.Draw(new Vector2[] { new Vector2(x + midWidth, y - midWidth), new Vector2(x + midWidth, y + midWidth) }, colorWithAlpha);
line.Draw(new Vector2[] { new Vector2(x + midWidth, y + midWidth), new Vector2(x - midWidth, y + midWidth) }, colorWithAlpha);
line.Draw(new Vector2[] { new Vector2(x - midWidth, y + midWidth), new Vector2(x - midWidth, y - midWidth) }, colorWithAlpha);
line.End();
}