|
|
|
|
@ -98,7 +98,11 @@ public partial class CommunicationDataViewModel : ObservableObject |
|
|
|
|
|
|
|
|
|
// set new newline separator type and overwrite data collection (triggers property changed) |
|
|
|
|
this.currentReceiveNewlineSeparatorType = (NewlineSeparatorType)receiveNewlineSeparatorType; |
|
|
|
|
// update collection, invoke ui thread if necessary |
|
|
|
|
ContextHelpers.InvokeIfNecessary(this.uiContext, (Action)delegate |
|
|
|
|
{ |
|
|
|
|
this.ReceivedData = ReorderDataCollection(this.ReceivedData, this.currentReceiveNewlineSeparatorType); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
if (sendNewlineSeparatorType != null) |
|
|
|
|
{ |
|
|
|
|
@ -107,7 +111,11 @@ public partial class CommunicationDataViewModel : ObservableObject |
|
|
|
|
|
|
|
|
|
// set new newline separator type and overwrite data collection (triggers property changed) |
|
|
|
|
this.currentSentNewlineSeparatorType = (NewlineSeparatorType)sendNewlineSeparatorType; |
|
|
|
|
// update collection, invoke ui thread if necessary |
|
|
|
|
ContextHelpers.InvokeIfNecessary(this.uiContext, (Action)delegate |
|
|
|
|
{ |
|
|
|
|
this.SentData = ReorderDataCollection(this.SentData, this.currentSentNewlineSeparatorType); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|