public virtual void RemoveChildSource(Source child) { lock (Children) { if (child.Children.Count > 0) { child.ClearChildSources(); } child_sources.Remove(child); OnChildSourceRemoved(child); } }
public virtual void RemoveChildSource(Source child) { lock (Children) { if (child.Children.Count > 0) { child.ClearChildSources(); } child_sources.Remove(child); if (ServiceManager.SourceManager.ActiveSource == child) { if (CanActivate) { ServiceManager.SourceManager.SetActiveSource(this); } } OnChildSourceRemoved(child); } }