示例#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;
 }
 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);
 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;
 }