Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void _serieport_NewSerialDataReceived(object sender, SerialDataEventArgs e)
- {
- try
- {
- Dispatcher.Invoke(() =>
- {
- txtData.AppendText(Encoding.ASCII.GetString(e.Data));
- txtData.ScrollToEnd();
- });
- }
- catch (Exception ex)
- {
- MessageBox.Show(ex.ToString());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement