public void RemoveContextFeatures(IContextFeature contextFeatureToRemove) { if (!ContextFeatures.Contains(contextFeatureToRemove)) { //TODO: Show some warning (not an error) return; } ContextFeatures.Remove(contextFeatureToRemove); OnRemovedFeaturesFromSocialContext?.Invoke(new List <IContextFeature>() { contextFeatureToRemove }); OnSocialContextChanged?.Invoke(); }
public void AddContextFeatures(IContextFeature contextFeatureToAdd) { if (ContextFeatures.Contains(contextFeatureToAdd)) { //TODO: Show some warning (not an error) return; } ContextFeatures.Add(contextFeatureToAdd); OnAddedFeaturesToSocialContext?.Invoke(new List <IContextFeature>() { contextFeatureToAdd }); OnSocialContextChanged?.Invoke(); }