Пример #1
0
 private void DoWireItemOn( RichItem item ) {
   if ( item == null || item.Owner == this ) return;
   DoWireItemOff( item );
   item.InternalWireToOwner( this );
 }
Пример #2
0
    //
    // Service
    //

    private void DoWireItemOff( RichItem item ) {
      IRichCollectionOwner itemOwner = item == null ? null : item.Owner;
      if ( itemOwner == null ) return;
      item.InternalWireToOwner( null );
      if (itemOwner != this) itemOwner.Remove( item );
    }