Exemplo n.º 1
0
 bool ValidateConnection(IControlPoint otherControlPoint)
 {
     if (otherControlPoint != null)
     {
         if (otherControlPoint.CanConnect(this) || this.CanConnect(otherControlPoint))
         {
             return(true);
         }
     }
     return(false);
 }
Exemplo n.º 2
0
 void outproxy_ControlPointConnected(BasicControlPoint cp, IControlPoint other)
 {
     if (!cp.MarkForDelete && !mbLoading)
     {
         if (other.CanConnect(cp.ProxyTarget))
         {
             other.ConnectControlPoint(cp.ProxyTarget);
         }
     }
     if (!cp.MarkForDelete && !mbLoading)
     {
         mHost.UIUpdate(mGroupUI, new BasicArgument(BasicArgument.eArgumentType.Refresh), eUpdateVisibilty.AnyVisiblity);
     }
     mHost.SetGroupsDirty();
 }
Exemplo n.º 3
0
 void BindControlPoints(IControlPoint otherControlPoint)
 {
     if (otherControlPoint != null)
     {
         if (otherControlPoint.CanConnect(this))
         {
             otherControlPoint.ConnectControlPoint(this);
         }
         else if (this.CanConnect(otherControlPoint))
         {
             ConnectControlPoint(otherControlPoint);
         }
         mHost.SetDirty();
     }
 }