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; }
public void SetMessageLineHilite(EndpointInfo endpoint, bool hilite) { var message = messageLookup.GetOrAdd(endpoint, null); if (message == null) { return; } message.Hilited = hilite; }
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; }
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; }
public void SetMessageLine(EndpointInfo endpoint, MessageInfo message) { messageLookup[endpoint] = message; }
public bool EndpointMessageLineIsPublished(EndpointInfo endpoint) { var message = messageLookup.GetOrAdd(endpoint, null); return(message != null && message.IsPublished); }
public bool EndpointNeedsMessageLine(EndpointInfo endpoint) { var message = messageLookup.GetOrAdd(endpoint, null); return(message != null); }