1
0
mirror of https://github.com/proxysu/ProxySU.git synced 2024-11-25 06:36:08 +03:00

学习使用多线程

This commit is contained in:
ProxySU 2020-03-10 13:49:50 +08:00
parent e0c2b9efb0
commit c52102b5e7
3 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ namespace ProxySU
//Random random = new Random(); //Random random = new Random();
//String Num = random.Next(0, 100).ToString(); //String Num = random.Next(0, 100).ToString();
Action<TextBlock, String> updateAction = new Action<TextBlock, string>(UpdateTextBlockSetUpProcessing); Action<TextBlock, String> updateAction = new Action<TextBlock, string>(UpdateTextBlockSetUpProcessing);
TextBlockSetUpProcessing.Dispatcher.BeginInvoke(updateAction, textBlockName, Num); //TextBlockSetUpProcessing.Dispatcher.BeginInvoke(updateAction, textBlockName, Num);
} }
//更新UI显示内容 //更新UI显示内容
private void UpdateTextBlockSetUpProcessing(TextBlock textBlockName, string text) private void UpdateTextBlockSetUpProcessing(TextBlock textBlockName, string text)

Binary file not shown.

Binary file not shown.