/// <summary> /// Initializes a new instance of the <see cref="ScanResult" /> class. /// </summary> /// <param name="pointerItem">The inner pointer item.</param> /// <param name="dataType">The data type of the value at this address.</param> /// <param name="value">The initial value of this result.</param> /// <param name="previousValue">The previous scan value.</param> /// <param name="label">The label of this result.</param> public ScanResult(PointerItemView pointerItem, Object previousValue, String label) { this.PointerItem = pointerItem; this.PreviousValue = previousValue; this.Label = label; this.PointerItem.PropertyChanged += PointerItemChanged; }
/// <summary> /// Initializes a new instance of the <see cref="ScanResult" /> class. /// </summary> /// <param name="pointerItem">The inner pointer item.</param> /// <param name="dataType">The data type of the value at this address.</param> /// <param name="value">The initial value of this result.</param> /// <param name="previousValue">The previous scan value.</param> /// <param name="label">The label of this result.</param> public ScanResult(PointerItemView pointerItem, Object previousValue, String label) { this.PointerItem = pointerItem; this.PreviousValue = previousValue; this.Label = label; PropertyChangedEventHandler eventHandler = new PropertyChangedEventHandler(PointerItemChanged); this.PointerItem.PropertyChanged += eventHandler; }