public MapControl()
{
this.ClipToBounds = true;
this.SrcPos = this.DstPos = DirectionSet.Exact;
//this.UseLayoutRounding = false;
//this.UseLayoutRounding = true;
this.CurrentTileInfo = new TileInfo();
this.Focusable = true;
this.TileSize = 24;
m_map = new Map(MapWidth, MapHeight, MapDepth);
ClearMap();
this.DragStarted += OnDragStarted;
this.DragEnded += OnDragEnded;
this.Dragging += OnDragging;
this.DragAborted += OnDragAborted;
this.MouseClicked += OnMouseClicked;
}