You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.8 KiB
57 lines
1.8 KiB
using ESRI.ArcGIS.Carto; |
|
using ESRI.ArcGIS.Controls; |
|
using KGIS.Framework.Commands; |
|
using KGIS.Framework.Maps; |
|
using KGIS.Framework.Platform; |
|
using KGIS.Framework.Utils; |
|
using KGIS.Framework.Utils.Helper; |
|
using Kingo.Plugin.DTBJK_XJ.View; |
|
using Kingo.PluginServiceInterface; |
|
using Kingo.PluginServiceInterface.Helper; |
|
using System; |
|
using System.Collections.Generic; |
|
using System.Linq; |
|
using UIShell.OSGi; |
|
|
|
namespace Kingo.Plugin.DTBJK_XJ.Commands |
|
{ |
|
/// <summary> |
|
/// 设置影像地址 |
|
/// </summary> |
|
public class CmdSetMapImageUrl : BaseMenuCommand |
|
{ |
|
private UCSetAllMapImageUrls uCSetAllMapImageUrls = null; |
|
public override void OnClick() |
|
{ |
|
try |
|
{ |
|
uCSetAllMapImageUrls = new UCSetAllMapImageUrls(); |
|
uCSetAllMapImageUrls.Closed += (s, e) => |
|
{ |
|
uCSetAllMapImageUrls = null; |
|
KGIS.Framework.Maps.MapsManager.Instance.MapService.getAxMapControl().CurrentTool = null; |
|
}; |
|
uCSetAllMapImageUrls.ShowInMainWindow(); |
|
} |
|
catch (Exception ex) |
|
{ |
|
LogAPI.Debug("设置影像地址出现错误,可能的原因是::" + ex.Message); |
|
LogAPI.Debug("设置影像地址出现错误,可能的原因是::" + ex.StackTrace); |
|
MessageHelper.ShowError("设置影像地址出现错误,可能的原因是:" + ex.Message); |
|
} |
|
} |
|
|
|
public override void OnCreate(object Hook) |
|
{ |
|
|
|
} |
|
|
|
public override bool Enabled |
|
{ |
|
get |
|
{ |
|
return KGIS.Framework.Maps.MapsManager.Instance.MapService.GetProjectInfo() == null ? false : true; |
|
} |
|
} |
|
} |
|
}
|
|
|