Ejemplo n.º 1
0
 protected virtual void Dispose(bool disposing)
 {
     if (!_disposed)
     {
         if (disposing)
         {
         }
         _mapLayersHandler = null;
         _currentMapLayer  = null;
         _axMap            = null;
         _disposed         = true;
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Constructor and sets up map control events
        /// </summary>
        /// <param name="mapControl"></param>
        /// <param name="layersHandler"></param>
        public MapInterActionHandler(AxMap mapControl, MapLayersHandler layersHandler)
        {
            _mapLayersHandler = layersHandler;
            _mapLayersHandler.CurrentLayer += OnCurrentMapLayer;
            _axMap = mapControl;
            _axMap.MouseUpEvent      += OnMapMouseUp;
            _axMap.MouseDownEvent    += OnMapMouseDown;
            _axMap.SelectBoxFinal    += OnMapSelectBoxFinal;
            _axMap.MouseMoveEvent    += OnMapMouseMove;
            _axMap.DblClick          += OnMapDoubleClick;
            _axMap.SelectionChanged  += OnMapSelectionChanged;
            _axMap.SendMouseDown      = true;
            _axMap.SendMouseMove      = true;
            _axMap.SendSelectBoxFinal = true;
            _axMap.SendMouseUp        = true;
            EnableMapInteraction      = true;

            _axMap.MapCursor  = tkCursor.crsrArrow;
            _axMap.CursorMode = tkCursorMode.cmSelection;
        }
Ejemplo n.º 3
0
 public MapLayer(int handle, string name, bool visible, bool visibleInLayersUI, MapLayersHandler parent)
 {
     Handle             = handle;
     Name               = name;
     Visible            = visible;
     VisibleInLayersUI  = visibleInLayersUI;
     IsFishingGrid      = false;
     _parent            = parent;
     ClassificationType = ClassificationType.None;
 }