Ejemplo n.º 1
0
        bool CreateLink(ServiceProtocol serviceProtocol, Int64 requestID, Guid guid, String tag, String classID, Guid origin, Guid destination, String originPort, String destinationPort, List <PointF> controlPoints)
        {
            if (true) // Decide whether to create an link.
            {         // We're going to do it.
              // Create the item.

                // Raise event(s).
                serviceProtocol.DoLinkCreated(requestID, guid, tag, classID, origin, destination, originPort, destinationPort, controlPoints);

                return(true);
            }
            else
            { // We're not going to do it.
                return(false);
            }
        }
Ejemplo n.º 2
0
  bool CreateLink(ServiceProtocol serviceProtocol, Int64 requestID, Guid guid, String tag, String classID, Guid origin, Guid destination, String originPort, String destinationPort, List<PointF> controlPoints)
  {
    if (true) // Decide whether to create an link.
    { // We're going to do it.
      // Create the item.

      // Raise event(s).
      serviceProtocol.DoLinkCreated(requestID, guid, tag, classID, origin, destination, originPort, destinationPort, controlPoints);

      return true;
    }
    else
    { // We're not going to do it.
      return false;
    }
  }