コード例 #1
0
ファイル: ESRIResourceManager.cs プロジェクト: hy1314200/HyDM
        public ICommand CommandProxy(object objCommand)
        {
            if (objCommand is ESRI.ArcGIS.SystemUI.ICommandSubType)
                return null;

            if (objCommand is ESRI.ArcGIS.SystemUI.IToolControl)
            {
                objCommand = new EsriExProxy(objCommand as ESRI.ArcGIS.SystemUI.IToolControl);
            }
            else if (objCommand is ESRI.ArcGIS.SystemUI.ICommand)
            {
                objCommand = new EsriCommandProxy(objCommand as ESRI.ArcGIS.SystemUI.ICommand);
            }
            return objCommand as ICommand;
        }
コード例 #2
0
        public ICommand CommandProxy(object objCommand)
        {
            if (objCommand is ESRI.ArcGIS.SystemUI.ICommandSubType)
            {
                return(null);
            }

            if (objCommand is ESRI.ArcGIS.SystemUI.IToolControl)
            {
                objCommand = new EsriExProxy(objCommand as ESRI.ArcGIS.SystemUI.IToolControl);
            }
            else if (objCommand is ESRI.ArcGIS.SystemUI.ICommand)
            {
                objCommand = new EsriCommandProxy(objCommand as ESRI.ArcGIS.SystemUI.ICommand);
            }
            return(objCommand as ICommand);
        }