public override void OnDblClick() { IGeometry pGeometry; if (m_newBezierCurveFeedback != null) { m_newBezierCurveFeedback.AddPoint(fPoint); } pGeometry = m_newBezierCurveFeedback.Stop(); IActiveView pActiveView = m_hookHelper.ActiveView; m_newBezierCurveFeedback = null; IPolyline polyline = new PolylineClass(); polyline = (IPolyline)pGeometry; //polyline = DataEditCommon.PDFX(polyline, "Bezier"); IPointCollection pointCollection = (IPointCollection)polyline; if (pointCollection.PointCount < 4) { MessageBox.Show("¹Ø¼üµã²»ÄÜСÓÚ3¸ö£¡"); return; } //DrawFeatureByShape(m_pCurrentLayer, pGeometry); CollapsePillarsEntering form = new CollapsePillarsEntering(pointCollection); form.ShowDialog(); }
/// <summary> /// 修改按钮响应 /// </summary> /// <params name="sender"></params> /// <params name="e"></params> private void tsBtnModify_Click(object sender, EventArgs e) { var c = new CollapsePillarsEntering((CollapsePillar)gridView1.GetFocusedRow()); if (DialogResult.OK == c.ShowDialog()) { RefreshData(); } }
public override void OnDblClick() { IGeometry pGeometry; if (m_newBezierCurveFeedback != null) { m_newBezierCurveFeedback.AddPoint(fPoint); } pGeometry = m_newBezierCurveFeedback.Stop(); IActiveView pActiveView = m_hookHelper.ActiveView; m_newBezierCurveFeedback = null; IPolyline polyline = new PolylineClass(); polyline = (IPolyline)pGeometry; //polyline = DataEditCommon.PDFX(polyline, "Bezier"); IPointCollection pointCollection = (IPointCollection)polyline; if (pointCollection.PointCount < 4) { MessageBox.Show("�ؼ��㲻��С��3����"); return; } //DrawFeatureByShape(m_pCurrentLayer, pGeometry); CollapsePillarsEntering form = new CollapsePillarsEntering(pointCollection); form.ShowDialog(); }
/// <summary> /// 添加按钮响应 /// </summary> /// <params name="sender"></params> /// <params name="e"></params> private void tsBtnAdd_Click(object sender, EventArgs e) { var c = new CollapsePillarsEntering(); if (DialogResult.OK == c.ShowDialog()) { RefreshData(); } }