Пример #1
0
        public MessageEndpointInfo(EndpointInfo endpoint)
        {
            if (endpoint == null)
                throw new ArgumentNullException("endpoint", "endpoint is null.");

            Name = endpoint.Name;
            FullName = endpoint.FullName;
            Version = endpoint.Version;
            Host = endpoint.Host;
        }
Пример #2
0
        public void SetMessageLineHilite(EndpointInfo endpoint, bool hilite)
        {
            var message = messageLookup.GetOrAdd(endpoint, null);

            if (message == null)
            {
                return;
            }

            message.Hilited = hilite;
        }
Пример #3
0
        public MessageEndpointInfo(EndpointInfo endpoint)
        {
            if (endpoint == null)
            {
                throw new ArgumentNullException("endpoint", "endpoint is null.");
            }

            Name     = endpoint.Name;
            FullName = endpoint.FullName;
            Version  = endpoint.Version;
            Host     = endpoint.Host;
        }
Пример #4
0
        protected override void OnMouseLeave(MouseEventArgs e)
        {
            var message = DataContext as MessageInfo;

            if (mouseOverEndpoint != null && message != null)
            {
                message.SetMessageLineHilite(mouseOverEndpoint, false);
                mouseOverEndpoint = null;
                return;
            }

            MouseOver = false;
        }
        protected override void OnMouseLeave(MouseEventArgs e)
        {
            var message = DataContext as MessageInfo;
            if (mouseOverEndpoint != null && message != null)
            {
                message.SetMessageLineHilite(mouseOverEndpoint, false);
                mouseOverEndpoint = null;
                return;
            }

            MouseOver = false;
        }
 private void Line_MouseEnter(object sender, MouseEventArgs e)
 {
     mouseOverEndpoint = ((FrameworkElement)sender).DataContext as EndpointInfo;
 }
Пример #7
0
 protected override object Convert(MessageInfo message, EndpointInfo endpoint)
 {
     return(message.EndpointMessageLineIsPublished(endpoint) ? new DoubleCollection(new [] { 1.5 }) : new DoubleCollection());
 }
Пример #8
0
 protected override object Convert(MessageInfo message, EndpointInfo endpoint)
 {
     return(message.EndpointNeedsMessageLine(endpoint) ? Visibility.Visible : Visibility.Hidden);
 }
Пример #9
0
 protected abstract object Convert(MessageInfo message, EndpointInfo endpoint);
 protected override object Convert(MessageInfo message, EndpointInfo endpoint)
 {
     return message.EndpointMessageLineIsPublished(endpoint) ? new DoubleCollection(new [] { 1.5 }) : new DoubleCollection();
 }
 protected override object Convert(MessageInfo message, EndpointInfo endpoint)
 {
     return message.EndpointNeedsMessageLine(endpoint) ? Visibility.Visible : Visibility.Hidden;
 }
 protected abstract object Convert(MessageInfo message, EndpointInfo endpoint);
Пример #13
0
 public void SetMessageLine(EndpointInfo endpoint, MessageInfo message)
 {
     messageLookup[endpoint] = message;
 }
Пример #14
0
        public bool EndpointMessageLineIsPublished(EndpointInfo endpoint)
        {
            var message = messageLookup.GetOrAdd(endpoint, null);

            return(message != null && message.IsPublished);
        }
Пример #15
0
        public bool EndpointNeedsMessageLine(EndpointInfo endpoint)
        {
            var message = messageLookup.GetOrAdd(endpoint, null);

            return(message != null);
        }
Пример #16
0
 private void Line_MouseEnter(object sender, MouseEventArgs e)
 {
     mouseOverEndpoint = ((FrameworkElement)sender).DataContext as EndpointInfo;
 }