Пример #1
0
 public static IMapCommand GetMapTool(enumMapTools maptool)
 {
     if (_regedTools.ContainsKey(maptool))
     {
         return(_regedTools[maptool]);
     }
     return(null);
 }
Пример #2
0
        private void SetMapToolByCurrentType()
        {
            IMapCommand cmd = MapToolFactory.GetMapTool(_currentToolType);

            if (!(cmd is IMapTool))
            {
                return;
            }
            if (_currentMapTool != null)
            {
                (_currentMapTool as IMapToolInternal).Deactive();
            }
            _currentMapTool = cmd as IMapTool;
            if (_currentMapTool == null)
            {
                _currentToolType = enumMapTools.None;
            }
            else
            {
                (_currentMapTool as IMapToolInternal).Active();
            }
        }
Пример #3
0
 public IMapCommand FindSystemMapTool(enumMapTools maptooltype)
 {
     return(MapToolFactory.GetMapTool(maptooltype));
 }