/// <summary> /// Updates the <see cref="MappingRows"/> /// </summary> /// <param name="mappedElement">The <see cref="MappedElementDefinitionRowViewModel"/></param> private void UpdateMappedThings(MappedElementDefinitionRowViewModel mappedElement) { this.MappingRows.Add(new MappingRowViewModel(this.dstController.MappingDirection, mappedElement)); }
/// <summary> /// Initializes a new <see cref="OpcVariableChangedEvent"/> based on a <see cref="MappedElementDefinitionRowViewModel"/> /// </summary> /// <param name="mappedElement">The <see cref="MappedElementDefinitionRowViewModel"/></param> public OpcVariableChangedEvent(MappedElementDefinitionRowViewModel mappedElement) { this.Id = mappedElement.SelectedVariable.Reference.NodeId.Identifier; this.Value = mappedElement.SelectedValue.Value; }