Esempio n. 1
0
        bool CreateThing(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 create an Thing.
            {         // We're going to do it.
              // Create the Thing.

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

                return(true);
            }
            else
            { // We're not going to do it.
                return(false);
            }
        }
Esempio n. 2
0
  bool CreateThing(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 create an Thing.
    { // We're going to do it.
      // Create the Thing.

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

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