public SymbolizationByLayerPropPage(MyPluginEngine.IApplication hook)
        {
            InitializeComponent();
            //禁用Glass主题
            this.EnableGlass = false;
            //不显示最大化最小化按钮
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            //
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
            //去除图标
            this.ShowIcon = false;

            m_activeView = hook.MapControl.ActiveView;
            m_map = hook.MapControl.Map;
            m_mapControl = hook.MapControl;
            m_TOCControl = hook.TOCControl;

            //if (m_hookHelper.Hook is IToolbarControl)
            //{
            //    IToolbarControl toolbarControl = m_hookHelper.Hook as IToolbarControl;
            //    m_mapControl = (IMapControl3)toolbarControl.Buddy;
            //}
            //if (m_hookHelper.Hook is IMapControl3)
            //{
            //    m_mapControl = m_hookHelper.Hook as IMapControl3;
            //}
        }
예제 #2
0
        public void GetItemInfo(int pos, MyPluginEngine.ItemDef itemDef)
        {
            switch (pos)
            {
                case 0:
                    itemDef.ID = "MyDatapreMenu.cFeatureToRaster";
                    itemDef.Group = false;
                    break;
                case 1:
                    itemDef.ID = "MyDatapreMenu.cRasterToPolygon";
                    itemDef.Group = false;
                    break;
                case 2:
                    itemDef.ID = "MyDatapreMenu.cProject";
                    itemDef.Group = false;
                    break;
                case 3:
                    itemDef.ID = "MyDatapreMenu.cResample";
                    itemDef.Group = false;
                    break;
                case 4:
                    itemDef.ID = "MyDatapreMenu.cKriging";
                    itemDef.Group = false;
                    break;
                case 5:
                    itemDef.ID = "MyDatapreMenu.cSpline";
                    itemDef.Group = false;
                    break;
                case 6:
                    itemDef.ID = "MyDatapreMenu.cIdw";
                    itemDef.Group = false;
                    break;
                case 7:
                    itemDef.ID = "MyDatapreMenu.cRasterCalculator";
                    itemDef.Group = false;
                    break;
                case 8:
                    itemDef.ID = "MyDatapreMenu.cDBConnection";
                    itemDef.Group = false;
                    break;
                case 9:
                    itemDef.ID = "MyDatapreMenu.cRasterReClass";
                    itemDef.Group = false;
                    break;
                default:
                    break;

            }
        }
        public fm_RasterRenderClassification(MyPluginEngine.IApplication hook)
        {
            InitializeComponent();
            //禁用Glass主题
            this.EnableGlass = false;
            //不显示最大化最小化按钮
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            //
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
            //去除图标
            this.ShowIcon = false;

            m_map = hook.MapControl.Map;
            axtoccontrol = hook.TOCControl;
            axmapcontrol = hook.MapControl;
        }
예제 #4
0
        public DotDensitySymbols(MyPluginEngine.IApplication hook)
        {
            InitializeComponent();
            //禁用Glass主题
            this.EnableGlass = false;
            //不显示最大化最小化按钮
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            //
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
            //去除图标
            this.ShowIcon = false;

            m_activeView = hook.MapControl.ActiveView;
            m_map = hook.MapControl.Map;
            m_TOCControl = hook.TOCControl;
        }
        public void GetItemInfo(int pos, MyPluginEngine.ItemDef itemDef)
        {
            switch (pos)
            {
                case 0:
                    itemDef.ID = "TrendAnalyze.frmTEMPCmd";
                    itemDef.Group = false;
                    break;
                case 1:
                    itemDef.ID = "TrendAnalyze.frmPRECmd";
                    itemDef.Group = false;
                    break;
                //case 2:
                //    itemDef.ID = "TrendAnalyze.frmTableCmd";
                //    itemDef.Group = false;
                //    break;
                default:
                    break;

            }
        }
예제 #6
0
        public void OnCreate(MyPluginEngine.IApplication hook)
        {
            if (hook != null)
            {
                this.hk = hook;

            }
        }
 public void OnCreate(MyPluginEngine.IApplication hook)
 {
     //if (hook != null)
     //{
     //    this.hk = hook;
     //    m_mapControl = this.hk.MapControl;
     //}
 }
예제 #8
0
 public void OnCreate(MyPluginEngine.IApplication hook)
 {
     if (hook != null)
     {
         this.hk = hook;
         m_mapControl = this.hk.MapControl;
     }
 }
예제 #9
0
        /// <summary>
        /// Occurs when this tool is created
        /// </summary>
        /// <param name="hook">Instance of the application</param>
        public void OnCreate(MyPluginEngine.IApplication hook)
        {
            try
            {
                //m_hookHelper = new HookHelperClass();
                this.hk = hook;
            }
            catch
            {
                this.hk = null;
            }

            // TODO:  Add other initialization code
        }