年度变更建库软件5.0版本
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.
 
 

70 lines
1.9 KiB

using ESRI.ArcGIS.Controls;
using KGIS.Framework.Commands;
using KGIS.Framework.Maps;
using Kingo.PluginServiceInterface;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DevExpress.XtraEditors.Mask;
using ESRI.ArcGIS.Carto;
using ESRI.ArcGIS.Display;
using KGIS.Framework.Utils;
using ESRI.ArcGIS.Geodatabase;
using KGIS.Framework.AE;
using KGIS.Framework.AE.Enum;
using ESRI.ArcGIS.Geometry;
using System.Runtime.InteropServices;
using Kingo.Plugin.BHTB_Extract.View;
using Kingo.Plugin.BHTB_Extract.Model;
namespace Kingo.Plugin.BHTB_Extract.Commands
{
public class CmdMaskData : BaseMenuCommand
{
UcZYQMagr editMapBlockView = null;
public override void OnClick()
{
if (editMapBlockView == null)
{
editMapBlockView = UcZYQMagr.Instance;
//editMapBlockView.Title = "作业区管理";
editMapBlockView.CloseViewHandler += (sender, e) =>
{
editMapBlockView = null;
};
editMapBlockView.Loaded += (sender, e) =>
{
editMapBlockView.InitTreeView();
};
}
if (editMapBlockView != null)
{
editMapBlockView.ShowPanel();
}
}
private void EditMapBlockView_Closed(object sender, EventArgs e)
{
if (editMapBlockView != null)
{
editMapBlockView = null;
}
}
public override void OnCreate(object Hook)
{
}
public override bool Enabled
{
get
{
return KGIS.Framework.Maps.MapsManager.Instance.MapService.GetProjectInfo() == null ? false : true;
}
}
}
}