Exemplo n.º 1
0
 public static void PasteSegmentEnd(SegmentEndData segmentEndData, ushort targetNodeID, ushort targetSegmentID)
 {
     if (segmentEndData != null)
     {
         segmentEndData           = segmentEndData.Clone();
         segmentEndData.SegmentID = targetSegmentID;
         segmentEndData.NodeID    = targetNodeID;
     }
     segEndMan.SetAt(
         segmentID: targetSegmentID,
         nodeID: targetNodeID,
         value: segmentEndData);
 }
 public static void PasteSegmentEnd(SegmentEndData segmentEndData, ushort targetNodeID, ushort targetSegmentID)
 {
     Log.Info($"PasteSegmentEnd({segmentEndData}, targetNodeID:{targetNodeID}, targetSegmentID:{targetNodeID})", true);
     if (segmentEndData != null)
     {
         segmentEndData           = segmentEndData.Clone();
         segmentEndData.SegmentID = targetSegmentID;
         segmentEndData.NodeID    = targetNodeID;
     }
     segEndMan.SetAt(
         segmentID: targetSegmentID,
         nodeID: targetNodeID,
         value: segmentEndData);
 }