예제 #1
0
 private void frmCSDesign_FormClosed(object sender, FormClosedEventArgs e)
 {
     try
     {
         int intFCnt = pSnippet.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)
     {
         MessageBox.Show(this.Handle.ToString() + " Error:" + ex.Message);
         return;
     }
 }