Пример #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));
            }
        }
Пример #2
0
 public FeatureAddedEventArgs(Feature newFeature)
 {
     this.NewFeature = newFeature;
 }
Пример #3
0
 public bool ContainsFeature(Feature feature)
 {
     if (feature == null)
         throw new ArgumentNullException("feature");
     return _features.Contains(feature);
 }