Exemplo n.º 1
0
        public virtual void RemoveChildSource(Source child)
        {
            lock (Children) {
                if (child.Children.Count > 0)
                {
                    child.ClearChildSources();
                }

                child_sources.Remove(child);
                OnChildSourceRemoved(child);
            }
        }
Exemplo n.º 2
0
        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);
            }
        }