Ejemplo n.º 1
0
        bool ModifyThing(ServiceProtocol serviceProtocol, Int64 requestID, Guid guid, String tag, String path, RectangleF boundingRect, String xaml, Single angle, bool mirrorX, bool mirrorY)
        {
            if (true) // Decide whether to modify an Thing.
            {         // We're going to do it.
              // Modify the Thing.

                // Raise event(s).
                serviceProtocol.DoThingModified(requestID, guid, tag, path, boundingRect, xaml, angle, mirrorX, mirrorY);

                return(true);
            }
            else
            { // We're not going to do it.
                return(false);
            }
        }
Ejemplo n.º 2
0
  bool ModifyThing(ServiceProtocol serviceProtocol, Int64 requestID, Guid guid, String tag, String path, RectangleF boundingRect, String xaml, Single angle, bool mirrorX, bool mirrorY)
  {
    if (true) // Decide whether to modify an Thing.
    { // We're going to do it.
      // Modify the Thing.

      // Raise event(s).
      serviceProtocol.DoThingModified(requestID, guid, tag, path, boundingRect, xaml, angle, mirrorX, mirrorY);

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