Пример #1
0
        public void Replace(Source oldSource, Source newSource, bool updateParentState)
        {
            // Check first.

            if (((IElementIdentification)oldSource).ElementKey != ((IElementIdentification)newSource).ElementKey)
            {
                Namespaces.CheckAddElement(newSource);
            }

            Sources.Replace(oldSource, newSource);

            if (updateParentState)
            {
                UpdateStatesOnSourceRemoved(oldSource);
                UpdateStatesOnSourceAdded(newSource);
            }
        }
Пример #2
0
 internal bool Equals(Namespaces other)
 {
     return(base.Equals(other));
 }