예제 #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);
 }