コード例 #1
0
ファイル: frmAdvSWM.cs プロジェクト: sishui198/SAAR
 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;
     }
 }
コード例 #2
0
        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;
            }
        }