森林草原湿地荒漠调查
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.
 
 
 

58 lines
2.0 KiB

using ESRI.ArcGIS.Controls;
using KGIS.Common.Utility;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ESRI.ArcGIS.SystemUI;
namespace KGIS.Tools.Command.ArcGisZH
{
/// <summary>
/// 描述:自定义移动节点命令(用于节点编辑功能)
/// 创建人:沈超
/// 创建时间:2020-11-09
/// </summary>
public class CustomVertexMoveCommandChinese : ICommand
{
protected string m_caption;
protected bool IsChecked = false;
private ControlsEditingEditToolClass editorTool_ = new ControlsEditingEditToolClass();
public CustomVertexMoveCommandChinese()
{
m_caption = "移动折点";
}
public int Bitmap { get { return editorTool_.Bitmap; } }
public string Caption { get { return m_caption; } }
public string Category { get { return editorTool_.Category; } }
public bool Checked { get { return IsChecked; } }
public bool Enabled { get { return true; } }
public int HelpContextID { get { return editorTool_.HelpContextID; } }
public string HelpFile { get { return editorTool_.HelpFile; } }
public string Message { get { return editorTool_.Message; } }
public string Name { get { return editorTool_.Name; } }
public string Tooltip { get { return editorTool_.Tooltip; } }
public void OnCreate(object hook)
{
Env.Instance.Platfrom.NotifyMsg.NotifyMsgEven += NotifyMsg_NotifyMsgEven;
}
void NotifyMsg_NotifyMsgEven(Common.Interface.NotifyMsgPackage obj)
{
if (obj.MsgType == "ResultEditVertexCommand")
{
IsChecked = obj.Content == null ? true : false;
}
}
public void OnClick()
{
Env.Instance.Platfrom.NotifyMsg.SetNotifyMsg(new Common.Interface.NotifyMsgPackage() { MsgType = "EditVertexCommand", Content = null });
}
}
}