Exemplo n.º 1
0
 void FeaturesFeatureAdded(object sender, FeatureEventArgs e)
 {
     _verticesAreValid = false; // invalidate vertices
     if (e.Feature.DataRow == null) return;
     if(_featureLookup.ContainsKey(e.Feature.DataRow))
     {
         _featureLookup[e.Feature.DataRow] = e.Feature;
     }
     else
     {
         _featureLookup.Add(e.Feature.DataRow, e.Feature);
     }
     if (FeatureAdded != null) FeatureAdded(sender, e);
 }
Exemplo n.º 2
0
 void DataSetFeatureAdded(object sender, FeatureEventArgs e)
 {
     if (_drawingFilter == null) return;
     if (_drawingFilter.DrawnStates == null) return;
     _drawingFilter.DrawnStates.Add(e.Feature, new DrawnState(Symbology.GetCategories().First(), false, 0, true));
 }
Exemplo n.º 3
0
 void FeaturesFeatureRemoved(object sender, FeatureEventArgs e)
 {
     _verticesAreValid = false;
     _featureLookup.Remove(e.Feature.DataRow);
     if (FeatureRemoved != null) FeatureRemoved(sender, e);
 }
Exemplo n.º 4
0
 void DataSetFeatureRemoved(object sender, FeatureEventArgs e)
 {
     _drawingFilter.DrawnStates.Remove(e.Feature);
 }