private void OnClear(object sender, EventArgs e) { m_poly.Clear(); m_edgeButton.Enabled = false; m_lengthTextBox.Text = m_areaTextBox.Text = m_numPointsTextBox.Text = "0"; m_currLatTextBox.Text = m_currLonTextBox.Text = ""; }
private static PolygonResult PolyLength(double[][] points) { s_polyline.Clear(); for (int i = 0; i < points.Length; ++i) { s_polyline.AddPoint(points[i][0], points[i][1]); } return(s_polyline.Compute(false, true)); }