protected virtual void OnRaiseTextReceivedEvent(TextReceivedEventArgs trea) { EventHandler <TextReceivedEventArgs> handler = RaiseTextReceivedEvent; if (handler != null) { handler(this, trea); } }
private void HandleTextReceivedCom(object sender, TextReceivedEventArgs trea) { // string receivedString=""; //string finalString = ""; receivedString = (trea.TextReceived); finalString += receivedString; if (!dispatcherTimerCommand.IsEnabled) { dispatcherTimerCommand.Start(); } }
private void HandleTextReceived(object sender, TextReceivedEventArgs trea) { // string moreDialog =($" {DateTime.Now} - Received: {trea.TextReceived}"); txtPlayerDialog.AppendText($"\n {trea.ClientThatSentText} : {trea.TextReceived}"); }