public override void OnClick() { Plugin.Application.IAppGisUpdateRef phook = _AppHk as Plugin.Application.IAppGisUpdateRef; SysCommon.BottomQueryBar pBar = phook.QueryBar; if (pBar.m_WorkSpace == null) { pBar.m_WorkSpace = Plugin.ModuleCommon.TmpWorkSpace; } if (pBar.ListDataNodeKeys == null) { pBar.ListDataNodeKeys = Plugin.ModuleCommon.ListUserdataPriID; } PolygonBufferQueryToolClass pTool = _cmd as PolygonBufferQueryToolClass; pTool.WriteLog = WriteLog;//ygc 2012-9-12 是否写日志 pTool.GetQueryBar(pBar); _cmd.OnClick(); if (_AppHk.CurrentControl is IMapControl2) { _AppHk.MapControl.CurrentTool = _tool; } else { _AppHk.PageLayoutControl.CurrentTool = _tool; } _AppHk.CurrentTool = this.Name; }
public override void OnClick() { Plugin.Application.AppGIS phook = _AppHk as Plugin.Application.AppGIS; SysCommon.BottomQueryBar pBar = phook.QueryBar; if (pBar.m_WorkSpace == null) { pBar.m_WorkSpace = Plugin.ModuleCommon.TmpWorkSpace; } PolygonBufferQueryToolClass pTool = _cmd as PolygonBufferQueryToolClass; pTool.WriteLog = WriteLog;//ygc 2012-9-12 ÊÇ·ñдÈÕÖ¾ pTool.GetQueryBar(pBar); _cmd.OnClick(); //if (_AppHk.CurrentControl is IMapControl2) //{ _AppHk.MapControl.CurrentTool = _tool; //} //else //{ // _AppHk.PageLayoutControl.CurrentTool = _tool; //} _AppHk.CurrentTool = this.Name; }