コード例 #1
0
 void IComponentConnector.Connect(int connectionId, object target)
 {
     if (_componentConnector != null)
     {
         _componentConnector.Connect(connectionId, target);
     }
 }
コード例 #2
0
 public override void SetConnectionId(object root, int connectionId, object instance)
 {
     try
     {
         IComponentConnector connector = root as IComponentConnector;
         if (connector != null)
         {
             connector.Connect(connectionId, instance);
         }
     }
     catch (Exception exception)
     {
         if (CriticalExceptions.IsCriticalException(exception))
         {
             throw;
         }
         throw this.CreateException(System.Xaml.SR.Get("SetConnectionId"), exception);
     }
 }