private void MapEditorXnaPanelMouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
{
if (_map != null)
{
int x = e.X.Clamp(0, Width);
int y = e.Y.Clamp(0, Height);
if (SelectionEnabled && _mouseDown && _selectionActive)
{
_endPoint.X = x;
_endPoint.Y = y;
}
Invalidate();
}
}