コード例 #1
0
ファイル: frmBoxPlotResults.cs プロジェクト: sishui198/SAAR
 private void frmBoxPlotResults_FormClosed(object sender, FormClosedEventArgs e)
 {
     try
     {
         int intFCnt = m_pBL.RemoveBrushing(mForm, pFLayer);
         if (intFCnt == -1)
         {
             return;
         }
         else if (intFCnt == 0)
         {
             IFeatureSelection featureSelection = (IFeatureSelection)pFLayer;
             pActiveView.PartialRefresh(esriViewDrawPhase.esriViewGeoSelection, null, null);
             featureSelection.Clear();
             pActiveView.PartialRefresh(esriViewDrawPhase.esriViewGeoSelection, null, null);
         }
         else
         {
             return;
         }
     }
     catch (Exception ex)
     {
         frmErrorLog pfrmErrorLog = new frmErrorLog(); pfrmErrorLog.ex = ex; pfrmErrorLog.ShowDialog();
         return;
     }
 }
コード例 #2
0
 private void frmMScatterResults_FormClosed(object sender, FormClosedEventArgs e)
 {
     try
     {
         int intFCnt = m_pBL.RemoveBrushing(m_pForm, m_pFLayer);
         if (intFCnt == -1)
         {
             return;
         }
         else if (intFCnt == 0)
         {
             m_pActiveView.GraphicsContainer.DeleteAllElements();
             IFeatureSelection featureSelection = (IFeatureSelection)m_pFLayer;
             m_pActiveView.PartialRefresh(esriViewDrawPhase.esriViewGeoSelection, null, null);
             featureSelection.Clear();
             m_pActiveView.Refresh();
         }
         else
         {
             return;
         }
     }
     catch (Exception ex)
     {
         frmErrorLog pfrmErrorLog = new frmErrorLog(); pfrmErrorLog.ex = ex; pfrmErrorLog.ShowDialog();
         return;
     }
 }
コード例 #3
0
 private void frmClassificationGraph_FormClosed(object sender, FormClosedEventArgs e)
 {
     try
     {
         int intFCnt = m_pBL.RemoveBrushing(m_pForm, m_pFLayer);
         if (intFCnt == -1)
         {
             return;
         }
         else if (intFCnt == 0)
         {
             IFeatureSelection featureSelection = (IFeatureSelection)m_pFLayer;
             m_pActiveView.PartialRefresh(esriViewDrawPhase.esriViewGeoSelection, null, null);
             featureSelection.Clear();
             m_pActiveView.PartialRefresh(esriViewDrawPhase.esriViewGeoSelection, null, null);
         }
         else
         {
             return;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(this.Handle.ToString() + " Error:" + ex.Message);
         return;
     }
 }