public void RemoveComponentSpecification(ComponentSpecification spec) { components.Remove(spec); spec.EntitySet = null; ComponentSpecsChanged.RaiseDeletionEventEx(this, spec); RaisePropertyChanged("ComponentSpecifications"); }
public void AddComponentSpecification(ComponentSpecification componentSpec) { if (components.Contains(componentSpec)) { return; } components.Add(componentSpec); componentSpec.EntitySet = this; RaisePropertyChanged("ComponentSpecifications"); ComponentSpecsChanged.RaiseAdditionEventEx(this, componentSpec); }