Exemplo n.º 1
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;
        }
Exemplo n.º 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);
        }