Exemplo n.º 1
0
        public void AddFeature(Feature feature)
        {
            if (feature == null) throw new ArgumentNullException("feature");

            if (!_features.Contains(feature))
            {
                _features.Add(feature);
                if (this.FeatureAdded != null)
                    this.FeatureAdded(this, new FeatureAddedEventArgs(feature));
            }
        }
Exemplo n.º 2
0
 public FeatureAddedEventArgs(Feature newFeature)
 {
     this.NewFeature = newFeature;
 }
Exemplo n.º 3
0
 public bool ContainsFeature(Feature feature)
 {
     if (feature == null)
         throw new ArgumentNullException("feature");
     return _features.Contains(feature);
 }