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.
|
|
|
|
using ESRI.ArcGIS.Controls;
|
|
|
|
|
using KGIS.Framework.Commands;
|
|
|
|
|
using KGIS.Framework.Utils;
|
|
|
|
|
using Kingo.Plugin.DLTB_IDG.View;
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Kingo.Plugin.DLTB_IDG.Commands
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 定性图斑检查
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class DataAnalysisCommand : BaseMenuCommand
|
|
|
|
|
{
|
|
|
|
|
public IHookHelper HookHelper { get; set; }
|
|
|
|
|
private UCDataAnalysis UCDataAnalysis = null;
|
|
|
|
|
public override void OnClick()
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
if (UCDataAnalysis == null)
|
|
|
|
|
{
|
|
|
|
|
UCDataAnalysis = new UCDataAnalysis
|
|
|
|
|
{
|
|
|
|
|
Height = 380
|
|
|
|
|
};
|
|
|
|
|
UCDataAnalysis.CloseViewHandler += View_CloseViewHandler;
|
|
|
|
|
}
|
|
|
|
|
UCDataAnalysis.ShowPanel();
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
LogAPI.Debug("打开定性图斑检查异常:" + ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
private void View_CloseViewHandler(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (UCDataAnalysis != null)
|
|
|
|
|
{
|
|
|
|
|
UCDataAnalysis.ClosePanel();
|
|
|
|
|
UCDataAnalysis = null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public override void OnCreate(object Hook)
|
|
|
|
|
{
|
|
|
|
|
if (HookHelper == null)
|
|
|
|
|
{
|
|
|
|
|
HookHelper = new HookHelperClass();
|
|
|
|
|
}
|
|
|
|
|
HookHelper.Hook = Hook;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override bool Enabled
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return KGIS.Framework.Maps.MapsManager.Instance.MapService.GetProjectInfo() == null ? false : true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|