Inheritance: DiagramNode
        void AddConnection(MessageNode parentNode, MessageNode childNode)
        {
            var fromPoint = new DiagramConnectionPoint(parentNode, Edge.Bottom);
            var toPoint   = new DiagramConnectionPoint(childNode, Edge.Top);

            parentNode.ConnectionPoints.Add(fromPoint);
            childNode.ConnectionPoints.Add(toPoint);

            DiagramConnection connection;

            if (childNode.IsPublished)
            {
                connection = new EventConnection(fromPoint, toPoint);
            }
            else if (childNode.IsTimeout)
            {
                connection = new TimeoutConnection(fromPoint, toPoint);
            }
            else
            {
                connection = new CommandConnection(fromPoint, toPoint);
            }

            Diagram.Connections.Add(connection);
        }
Ejemplo n.º 2
0
 public SearchMessageEventArgs(MessageNode message)
 {
     MessageNode = message;
 }
 public SearchMessageEventArgs(MessageNode message)
 {
     MessageNode = message;
 }