DiagramVisualItem CreateConversationStartMessage()
        {
            var handler = new Handler("First", null) { State = HandlerState.Success };
            var diagramItem = new DiagramVisualItem
            {
                Content = handler,
                Height = HandlerHeight,
                Width = HandlerWidth
            };

            return diagramItem;
        }
        DiagramVisualItem CreateErrorHandler()
        {
            var handler = new Handler("Failed", null) { State = HandlerState.Fail };
            var diagramItem = new DiagramVisualItem
            {
                Content = handler,
                Height = HandlerHeight,
                Width = HandlerWidth
            };

            return diagramItem;
        }
예제 #3
0
        DiagramVisualItem CreateConversationStartMessage()
        {
            var handler = new Handler("First", null)
            {
                State = HandlerState.Success
            };
            var diagramItem = new DiagramVisualItem
            {
                Content = handler,
                Height  = HandlerHeight,
                Width   = HandlerWidth
            };

            return(diagramItem);
        }
예제 #4
0
        DiagramVisualItem CreateErrorHandler()
        {
            var handler = new Handler("Failed", null)
            {
                State = HandlerState.Fail
            };
            var diagramItem = new DiagramVisualItem
            {
                Content = handler,
                Height  = HandlerHeight,
                Width   = HandlerWidth
            };

            return(diagramItem);
        }
예제 #5
0
        DiagramVisualItem CreateHandler()
        {
            var handler = new Handler("Handler", null)
            {
                State = HandlerState.Success
            };
            var diagramItem = new DiagramVisualItem
            {
                Content = handler,
                Height  = HandlerHeight,
                Width   = HandlerWidth
            };

            return(diagramItem);
        }
예제 #6
0
        DiagramVisualItem CreateEventMessage()
        {
            var arrow = new Arrow(new StoredMessage {
                MessageType = "Event", Status = MessageStatus.Successful
            }, null)
            {
                Width = ArrowWidth,
                Type  = ArrowType.Event
            };

            var diagramItem = new DiagramVisualItem
            {
                Content = arrow,
            };

            return(diagramItem);
        }
예제 #7
0
 public DiagramItemDescription(DiagramVisualItem item, string description)
 {
     Item        = item;
     Description = description;
 }
        DiagramVisualItem CreateEventMessage()
        {
            var arrow = new Arrow(new StoredMessage { MessageType = "Event", Status = MessageStatus.Successful }, null)
            {
                Width = ArrowWidth,
                Type = ArrowType.Event
            };

            var diagramItem = new DiagramVisualItem
            {
                Content = arrow,
            };

            return diagramItem;
        }
 public DiagramItemDescription(DiagramVisualItem item, string description)
 {
     Item = item;
     Description = description;
 }
        DiagramVisualItem CreateHandler()
        {
            var handler = new Handler("Handler", null) { State = HandlerState.Success };
            var diagramItem = new DiagramVisualItem
            {
                Content = handler,
                Height = HandlerHeight,
                Width = HandlerWidth
            };

            return diagramItem;
        }