public override void OnClick() {//XZQLocation if (_hook == null) { return; } if (_hook.MainUserControl == null) { return; } try { UserControlSMPD pUserControl = _hook.MainUserControl as UserControlSMPD; pUserControl.LocationByXZQNode(); DevComponents.AdvTree.AdvTree xzqTree = _hook.XZQTree; IGeometry xzqGeo = ModGetData.getExtentByXZQ(xzqTree.SelectedNode); if (xzqGeo == null) { //SysCommon.Error.ErrorHandle.ShowFrmErrorHandle("提示", "未找到相应的行政区范围!"); 屏蔽二次警告窗体 ygc 2012-8-29 return; } frmXZQZTStatistical pfrmXZQZTStatistical = new frmXZQZTStatistical(xzqTree.SelectedNode); pfrmXZQZTStatistical.ShowDialog(); } catch (Exception ex) { SysCommon.Error.ErrorHandle.ShowFrmErrorHandle("提示", ex.Message); } if (this.WriteLog) { Plugin.LogTable.Writelog("行政区专题统计"); //ygc 2012-9-14 写日志 } }
public override void OnClick() {//XZQLocation if (_hook == null) { return; } if (_hook.MainUserControl == null) { return; } UserControlSMPD pUserControl = _hook.MainUserControl as UserControlSMPD; pUserControl.LocationByXZQNode(); }
public override void OnClick() {//XZQLocation if (_hook == null) { return; } if (_hook.MainUserControl == null) { return; } try { UserControlSMPD pUserControl = _hook.MainUserControl as UserControlSMPD; pUserControl.LocationByXZQNode(); DevComponents.AdvTree.AdvTree xzqTree = _hook.XZQTree; IGeometry xzqGeo = ModGetData.getExtentByXZQ(xzqTree.SelectedNode); if (xzqGeo == null) { //SysCommon.Error.ErrorHandle.ShowFrmErrorHandle("提示", "未找到相应的行政区范围!");屏蔽二次警告窗体 ygc 2012-8-29 return; } if (this.WriteLog) { Plugin.LogTable.Writelog(this._Caption); } FrmPageLayout frm = new FrmPageLayout(_hook.MapControl.Map, xzqGeo, true); frm.WriteLog = WriteLog;//ygc 2012-9-12 是否写日志 frm.Show(); //pgss.Close(); _hook.MapControl.CurrentTool = null; Application.DoEvents(); } catch (Exception ex) { SysCommon.Error.ErrorHandle.ShowFrmErrorHandle("提示", ex.Message); } }