private void btnSubset_Click(object sender, EventArgs e) { try { frmSubsetPoly pfrmSubsetPoly = new frmSubsetPoly(); pfrmSubsetPoly.ShowDialog(); m_blnSubset = pfrmSubsetPoly.m_blnSubset; if (m_blnSubset) { m_pClippedPolygon = pfrmSubsetPoly.m_pClipPolygon;; chkCumulate.Visible = true; chkCumulate.Text = "Clipped by '" + m_pClippedPolygon.Name + "'"; chkCumulate.Checked = true; chkCumulate.Enabled = true; } else { chkCumulate.Visible = false; } } catch (Exception ex) { frmErrorLog pfrmErrorLog = new frmErrorLog(); pfrmErrorLog.ex = ex; pfrmErrorLog.ShowDialog(); return; } }
private void btnSubset_Click(object sender, EventArgs e) { try { //string strNameR = m_pSnippet.FilePathinRfromLayer(m_pFLayer); //m_pEngine.Evaluate("sample.shp <- readShapePoints('" + strNameR + "')"); frmSubsetPoly pfrmSubsetPoly = new frmSubsetPoly(); pfrmSubsetPoly.ShowDialog(); m_blnSubset = pfrmSubsetPoly.m_blnSubset; if (m_blnSubset) { m_pClippedPolygon = pfrmSubsetPoly.m_pClipPolygon;; chkCumulate.Visible = true; chkCumulate.Text = "Clipped by '" + m_pClippedPolygon.Name + "'"; chkCumulate.Checked = true; chkCumulate.Enabled = true; } else { chkCumulate.Visible = false; } } catch (Exception ex) { frmErrorLog pfrmErrorLog = new frmErrorLog(); pfrmErrorLog.ex = ex; pfrmErrorLog.ShowDialog(); return; } }