Quellcode durchsuchen

Merge remote-tracking branch 'origin/zhangxueyang' into zyy

tags/录制修改前
耀 vor 4 Jahren
Ursprung
Commit
12e349ab8d
1 geänderte Dateien mit 25 neuen und 8 gelöschten Zeilen
  1. 25
    8
      XHWK.WKTool/ScreenRecordingToolbarWindow.xaml.cs

+ 25
- 8
XHWK.WKTool/ScreenRecordingToolbarWindow.xaml.cs Datei anzeigen

@@ -362,7 +362,7 @@ namespace XHWK.WKTool
362 362
                             BtnRecordingScreen.IsEnabled = false;
363 363
                             BtnStopRecordingScreen.IsEnabled = false;
364 364
                         });
365
-                        Thread.Sleep(4000);
365
+                        //Thread.Sleep(4000);
366 366
                         Dispatcher.Invoke(() =>
367 367
                         {
368 368
                             ImgEndRecordingScreen.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar14.png"));
@@ -417,7 +417,7 @@ namespace XHWK.WKTool
417 417
                         BtnRecordingScreen.IsEnabled = false;
418 418
                         BtnStopRecordingScreen.IsEnabled = false;
419 419
                     });
420
-                    Thread.Sleep(2000);
420
+                    //Thread.Sleep(2000);
421 421
                     Dispatcher.Invoke(() =>
422 422
                     {
423 423
                         ImgEndRecordingScreen.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar14.png"));
@@ -1003,13 +1003,30 @@ namespace XHWK.WKTool
1003 1003
         /// </summary>
1004 1004
         public void ReturnPractice()
1005 1005
         {
1006
-            Dispatcher.Invoke(() =>
1006
+            new Thread(new ThreadStart(new Action(() =>
1007 1007
             {
1008
-                borOne.Background = new SolidColorBrush(Colors.DodgerBlue);
1009
-                borTwo.Background = new SolidColorBrush(Colors.DodgerBlue);
1010
-            });
1011
-            flg = 0;
1012
-            APP.W_PracticeWindow.Hide();
1008
+                Dispatcher.Invoke(() =>
1009
+                {
1010
+                    borOne.Background = new SolidColorBrush(Colors.DodgerBlue);
1011
+                    borTwo.Background = new SolidColorBrush(Colors.DodgerBlue);
1012
+                });
1013
+                flg = 0;
1014
+                Thread.Sleep(500);
1015
+                Dispatcher.Invoke(() =>
1016
+                {
1017
+                    APP.W_PracticeWindow.Hide();
1018
+                });
1019
+            }))).Start();
1020
+
1021
+
1022
+            //Dispatcher.Invoke(() =>
1023
+            //{
1024
+            //    borOne.Background = new SolidColorBrush(Colors.DodgerBlue);
1025
+            //    borTwo.Background = new SolidColorBrush(Colors.DodgerBlue);
1026
+            //});
1027
+            //flg = 0;
1028
+            //Thread.Sleep(300);
1029
+            //APP.W_PracticeWindow.Hide();
1013 1030
         }
1014 1031
     }
1015 1032
 }

Laden…
Abbrechen
Speichern