3using System.Windows.Media;
7 public enum SniffItemType
25 private readonly SniffItemType type;
26 private readonly DateTime timestamp;
27 private readonly
string message;
28 private readonly
byte[] data;
61 public SniffItemType
Type => this.type;
66 public string Time => this.timestamp.ToLongTimeString();
76 public byte[]
Data => this.data;
87 this.sniffer?.RaiseSelectionChanged();
94 this.sniffer?.RaiseSelectionChanged();
Abstract base class for selectable colorable item. From the IoTGateway project, with permission.
Color ForegroundColor
Foreground color
Color BackgroundColor
Background color
Sniffer, that outputs items to a ListView control. From the IoTGateway project, with permission.
Represents one item in a sniffer output. From the IoTGateway project, with permission.
SniffItem(DateTime Timestamp, SniffItemType Type, string Message, byte[] Data, Color ForegroundColor, Color BackgroundColor, ListViewSniffer Sniffer)
Represents one item in a sniffer output. From the IoTGateway project, with permission.
ListViewSniffer Sniffer
Sniffer owning the item.
DateTime Timestamp
Timestamp of event.
override void OnSelected()
Raises the Selected event.
SniffItemType Type
Sniff item type.
string Time
Time of day of event, as a string.
byte[] Data
Optional binary data.
override void OnDeselected()
Raises the Deselected event.