public EndpointItem(string name, string host, string id, string version = null)
        {
            HostId   = id;
            FullName = Name = name;
            Version  = version;
            Host     = host;

            Timeline = new EndpointTimeline
            {
                Endpoint = this,
            };
            Handlers = new List <Handler>();
        }
Пример #2
0
            public void Position(EndpointTimeline timeline)
            {
                var timelineVisual = diagram.GetItemFromContainer(timeline);

                if (timelineVisual == null)
                {
                    return;
                }

                var endpointVisual = diagram.GetItemFromContainer(timeline.Endpoint);

                if (endpointVisual == null)
                {
                    return;
                }

                timelineVisual.X      = endpointVisual.X + endpointVisual.ActualWidth / 2;
                timelineVisual.Y      = endpointVisual.Y + endpointVisual.ActualHeight;
                timelineVisual.Height = maxHeight;
            }
Пример #3
0
            public void Position(EndpointTimeline timeline)
            {
                var timelineVisual = diagram.GetItemFromContainer(timeline);
                if (timelineVisual == null)
                {
                    return;
                }

                var endpointVisual = diagram.GetItemFromContainer(timeline.Endpoint);
                if (endpointVisual == null)
                {
                    return;
                }

                timelineVisual.X = endpointVisual.X + endpointVisual.ActualWidth / 2;
                timelineVisual.Y = endpointVisual.Y + endpointVisual.ActualHeight;
                timelineVisual.Height = maxHeight;
            }