AE开发具体项目


本文件为一个AE二次开发具体项目,可作为课程设计代码。
资源截图
代码片段和文件信息
using System;
using System.Drawing;
using System.Runtime.InteropServices;
using ESRI.ArcGIS.ADF.baseClasses;
using ESRI.ArcGIS.ADF.CATIDs;
using ESRI.ArcGIS.framework;
using ESRI.ArcGIS.ArcMapUI;
using ESRI.ArcGIS.esriSystem;
using System.Windows.Forms;

namespace ShortcutKey
{
    /// 
    /// Summary description for ShortcutKey_AddData.
    /// 

    [Guid(“eed9879b-8bde-4a16-899c-d9c737089bde“)]
    [ClassInterface(ClassInterfaceType.None)]
    [ProgId(“ShortcutKey.ShortcutKey_AddData“)]
    public sealed class ShortcutKey_AddData : baseCommand
    {
        #region COM Registration Function(s)
        [ComRegisterFunction()]
        [ComVisible(false)]
        static void RegisterFunction(Type registerType)
        {
            // Required for ArcGIS Component Category Registrar support
            ArcGISCategoryRegistration(registerType);

            //
            // TODO: Add any COM registration code here
            //
        }

        [ComUnregisterFunction()]
        [ComVisible(false)]
        static void UnregisterFunction(Type registerType)
        {
            // Required for ArcGIS Component Category Registrar support
            ArcGISCategoryUnregistration(registerType);

            //
            // TODO: Add any COM unregistration code here
            //
        }

        #region ArcGIS Component Category Registrar generated code
        /// 
        /// Required method for ArcGIS Component Category registration -
        /// Do not modify the contents of this method with the code editor.
        /// 

        private static void ArcGISCategoryRegistration(Type registerType)
        {
            string regKey = string.Format(“HKEY_CLASSES_ROOT\CLSID\{{{0}}}“ registerType.GUID);
            MxCommands.Register(regKey);

        }
        /// 
        /// Required method for ArcGIS Component Category unregistration -
        /// Do not modify the contents of this method with the code editor.
        /// 

        private static void ArcGISCategoryUnregistration(Type registerType)
        {
            string regKey = string.Format(“HKEY_CLASSES_ROOT\CLSID\{{{0}}}“ registerType.GUID);
            MxCommands.Unregister(regKey);

        }

        #endregion
        #endregion

        private IApplication m_application;
        public ShortcutKey_AddData()
        {
            //
            // TODO: Define values for the public properties
            //
            base.m_category = “ShortcutKey“; //localizable text
            base.m_caption = “ShortcutKey_AddData“;  //localizable text
            base.m_message = “ShortcutKey_AddData“;  //localizable text 
            base.m_toolTip = “ShortcutKey_AddData“;  //localizable text 
            base.m_name = “ShortcutKey_AddData“;   //unique id non-localizable (e.g. “MyCategory_ArcMapCommand“)

            try
            {
     

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-03-12 15:38  DevelopingGISAppGIS应用开发课件
     文件     7570432  2017-03-12 15:32  DevelopingGISAppGIS应用开发课件GIS应用开发chap.1 .ppt
     文件     1833472  2017-03-12 15:36  DevelopingGISAppGIS应用开发课件GIS应用开发chap.10.ppt
     文件     1668608  2017-03-12 15:33  DevelopingGISAppGIS应用开发课件GIS应用开发chap.2.ppt
     文件     1498624  2017-03-12 15:33  DevelopingGISAppGIS应用开发课件GIS应用开发chap.3.ppt
     文件      997888  2017-03-12 15:34  DevelopingGISAppGIS应用开发课件GIS应用开发chap.4.ppt
     文件     2548736  2017-03-12 15:38  DevelopingGISAppGIS应用开发课件GIS应用开发chap.5.ppt
     文件     1731072  2017-03-12 15:37  DevelopingGISAppGIS应用开发课件GIS应用开发chap.6.ppt
     文件     1481728  2017-03-12 15:37  DevelopingGISAppGIS应用开发课件GIS应用开发chap.7.ppt
     文件     1194496  2017-03-12 15:36  DevelopingGISAppGIS应用开发课件GIS应用开发chap.9.ppt
     目录           0  2011-12-07 20:23  DevelopingGISAppSourceCodes
     目录           0  2011-12-07 20:23  DevelopingGISAppSourceCodesChap.02--ArcGIS应用程序框架扩展
     目录           0  2011-12-07 20:23  DevelopingGISAppSourceCodesChap.02--ArcGIS应用程序框架扩展Accelerator
     文件        6143  2011-09-24 15:54  DevelopingGISAppSourceCodesChap.02--ArcGIS应用程序框架扩展AcceleratorAccelerator.csproj
     目录           0  2011-12-07 20:23  DevelopingGISAppSourceCodesChap.02--ArcGIS应用程序框架扩展Acceleratorin
     目录           0  2011-12-07 20:23  DevelopingGISAppSourceCodesChap.02--ArcGIS应用程序框架扩展AcceleratorinDebug
     文件        6656  2018-01-04 14:58  DevelopingGISAppSourceCodesChap.02--ArcGIS应用程序框架扩展AcceleratorinDebugAcceleratorTable.dll
     文件       17920  2018-01-04 14:58  DevelopingGISAppSourceCodesChap.02--ArcGIS应用程序框架扩展AcceleratorinDebugAcceleratorTable.pdb
     文件        1580  2018-01-04 14:58  DevelopingGISAppSourceCodesChap.02--ArcGIS应用程序框架扩展AcceleratorinDebugAcceleratorTable.tlb
     目录           0  2011-12-07 20:23  DevelopingGISAppSourceCodesChap.02--ArcGIS应用程序框架扩展AcceleratorinRelease
     目录           0  2018-01-04 14:58  DevelopingGISAppSourceCodesChap.02--ArcGIS应用程序框架扩展Acceleratorobj
     文件         669  2018-01-04 14:58  DevelopingGISAppSourceCodesChap.02--ArcGIS应用程序框架扩展AcceleratorobjAccelerator.csproj.UnmanagedRegistration.cache
     目录           0  2018-01-04 14:58  DevelopingGISAppSourceCodesChap.02--ArcGIS应用程序框架扩展AcceleratorobjDebug
     文件        3082  2018-01-04 14:58  DevelopingGISAppSourceCodesChap.02--ArcGIS应用程序框架扩展AcceleratorobjDebugAccelerator.csproj.FileListAbsolute.txt
     文件      166884  2018-01-04 14:58  DevelopingGISAppSourceCodesChap.02--ArcGIS应用程序框架扩展AcceleratorobjDebugAccelerator.csprojResolveAssemblyReference.cache
     文件        6656  2018-01-04 14:58  DevelopingGISAppSourceCodesChap.02--ArcGIS应用程序框架扩展AcceleratorobjDebugAcceleratorTable.dll
     文件       17920  2018-01-04 14:58  DevelopingGISAppSourceCodesChap.02--ArcGIS应用程序框架扩展AcceleratorobjDebugAcceleratorTable.pdb
     文件        6145  2018-01-04 14:58  DevelopingGISAppSourceCodesChap.02--ArcGIS应用程序框架扩展AcceleratorobjDebugDesignTimeResolveAssemblyReferencesInput.cache
     文件         730  2011-09-24 17:02  DevelopingGISAppSourceCodesChap.02--ArcGIS应用程序框架扩展AcceleratorobjDebugShortcutKey.csproj.FileListAbsolute.txt
     目录           0  2011-12-07 20:23  DevelopingGISAppSourceCodesChap.02--ArcGIS应用程序框架扩展AcceleratorobjDebugTempPE
     文件         643  2011-09-24 17:02  DevelopingGISAppSourceCodesChap.02--ArcGIS应用程序框架扩展AcceleratorobjShortcutKey.csproj.UnmanagedRegistration.cache
............此处省略3286个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)