Beispiel #1
0
 private void BT_CLEAN_Click(object sender, RoutedEventArgs e)
 {
     this.Dispatcher.Invoke((Action)(() =>
     {
         TB_LOG.Clear();
     }));
 }
Beispiel #2
0
 private void AppendSendText(string Msg)
 {
     this.Dispatcher.Invoke((Action)(() =>
     {
         TB_LOG.AppendText(System.DateTime.Now.ToString("T") + "::[发送]::" + Msg + "\r");
         TB_LOG.ScrollToEnd();
         if (TB_LOG.LineCount > 200)
         {
             TB_LOG.Clear();
         }
     }));
 }