/// <summary> /// Occurs when this tool is clicked /// </summary> public override void OnClick() { if (m_hookHelper.FocusMap.SelectionCount != 1) { MessageBox.Show(@"请先选择一个参考线要素", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); GIS.GraphicEdit.FeatureSelect featSelectTool = new GraphicEdit.FeatureSelect(); featSelectTool.OnCreate(m_hookHelper.Hook); m_pMapControl.CurrentTool = featSelectTool; return; } m_FeatureRef = GetRefPolyline(); //获取选择的参考线 }
/// <summary> /// Occurs when this tool is clicked /// </summary> public override void OnClick() { if (m_hookHelper.FocusMap.SelectionCount != 1) { MessageBox.Show(@"����ѡ��һ���ο���Ҫ��", "��ʾ", MessageBoxButtons.OK, MessageBoxIcon.Information); GIS.GraphicEdit.FeatureSelect featSelectTool = new GraphicEdit.FeatureSelect(); featSelectTool.OnCreate(m_hookHelper.Hook); m_pMapControl.CurrentTool = featSelectTool; return; } m_FeatureRef = GetRefPolyline(); //��ȡѡ��IJο��� }