Пример #1
0
 void _spManager_NewSerialDataRecieved(object sender, SerialDataEventArgs e)
 {
     Dispatcher.BeginInvoke(new Action(() =>
     {
         string str = Encoding.ASCII.GetString(e.Data);
         DataTB.AppendText(str);
         if (AutoScroll.IsChecked == true)
         {
             DataTB.ScrollToEnd();
         }
     }));
     // This application is connected to a GPS sending ASCCI characters, so data is converted to text
 }