AStarTest.MapControl.MapControl C# (CSharp) Method

MapControl() public method

public MapControl ( ) : System
return System
        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;
        }