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.
		
		
		
		
		
			
		
			
				
					
					
						
							41 lines
						
					
					
						
							1.1 KiB
						
					
					
				
			
		
		
	
	
							41 lines
						
					
					
						
							1.1 KiB
						
					
					
				using ESRI.ArcGIS.ADF.BaseClasses; | 
						|
using ESRI.ArcGIS.Controls; | 
						|
using KGIS.Framework.EngineEditor; | 
						|
 | 
						|
namespace Kingo.Plugin.EngineEditor.Commands | 
						|
{ | 
						|
    /// <summary> | 
						|
    /// 追踪 工具条 | 
						|
    /// </summary> | 
						|
    public class OpenTraceCmd : BaseCommand | 
						|
    { | 
						|
        IEngineEditor m_pEditor; | 
						|
        public override void OnCreate(object hook) | 
						|
        { | 
						|
            m_pEditor = new EngineEditorClass(); | 
						|
        } | 
						|
 | 
						|
        public override bool Checked => EditorSettingClass.Instance.IsTraceing; | 
						|
        public override void OnClick() | 
						|
        { | 
						|
            EditorSettingClass.Instance.IsTraceing = !Checked; | 
						|
            base.OnClick(); | 
						|
        } | 
						|
 | 
						|
        public override bool Enabled | 
						|
        { | 
						|
            get | 
						|
            { | 
						|
                if (m_pEditor == null) | 
						|
                { | 
						|
                    return false; | 
						|
                } | 
						|
                if (m_pEditor.EditState != esriEngineEditState.esriEngineStateEditing) | 
						|
                { return false; } | 
						|
                if ((m_pEditor as EngineEditorClass).TargetLayer == null) | 
						|
                { return false; } | 
						|
                return true; | 
						|
            } | 
						|
        } | 
						|
    } | 
						|
}
 | 
						|
 |