Пример #1
0
 public override void OnDblClick() //Stop drawing polygon
 {
     if (_drawStart)
     {
         _polygon = _polyFeedback.Stop();
         DataOperator  dataOperator = new DataOperator(m_map);
         ILayer        layer        = dataOperator.GetLayerByName(sLayerName);
         IFeatureLayer featureLayer = layer as IFeatureLayer;
         IFeature      feature      = dataOperator.AddGeometryToLayer(sLayerName, _polygon); //Add the new geometry to layer
         AddFeature    addFeature   = new AddFeature(feature, m_map, m_frmMain);
         addFeature.ShowDialog();                                                            //Change the attributes
         _startPoint = null;
     }
 }