예제 #1
0
 private void Instance_NotificationEvent(TxLibrary.Notification.TxNotification.Notification notification, object[] args)
 {
     MainWindow.Instance.Dispatcher.Invoke(() => MainWindow.Instance.txtLog.Text += "Class B 接收到通知\n");
 }
예제 #2
0
 private void Instance_NotificationEvent(TxLibrary.Notification.TxNotification.Notification notification, object[] args)
 {
     MainWindow.Instance.Dispatcher.Invoke(() => MainWindow.Instance.txtLog.Text += "Class A 接收到通知\n");
     System.Threading.Thread.Sleep(1000 * 10);
 }