Browse Source

返回主界面 提示

tags/录制修改前
zhangxueyang 4 years ago
parent
commit
9e0fd70756

+ 8
- 8
XHWK.WKTool/CountdownWindow.xaml.cs View File

@@ -24,14 +24,14 @@ namespace XHWK.WKTool
24 24
         private int ImgNum = 21;
25 25
         public void Initialize(bool ShowlblShortcut = false, int changeTime = 2100)
26 26
         {
27
-            if (ShowlblShortcut)
28
-            {
29
-                lblShortcut.Visibility = Visibility.Visible;
30
-            }
31
-            else
32
-            {
33
-                lblShortcut.Visibility = Visibility.Hidden;
34
-            }
27
+            //if (ShowlblShortcut)
28
+            //{
29
+            //    lblShortcut.Visibility = Visibility.Visible;
30
+            //}
31
+            //else
32
+            //{
33
+            //    lblShortcut.Visibility = Visibility.Hidden;
34
+            //}
35 35
             ImgNum = 21;
36 36
             bool IsStart = true;
37 37
             new Thread(new ThreadStart(new Action(() =>

+ 11
- 5
XHWK.WKTool/ScreenRecordingToolbarWindow.xaml.cs View File

@@ -341,9 +341,10 @@ namespace XHWK.WKTool
341 341
                 btnBlackPenOne.IsEnabled = true;//蓝笔可点击
342 342
                 imgBlackPenTwo.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar28.png"));
343 343
                 btnBlackPenTwo.IsEnabled = true;//红笔可点击
344
-                imgReturn.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar29.png"));
345
-                btnReturn.IsEnabled = true;//返回主界面可点击
344
+            
346 345
                 txbTime.Visibility = Visibility.Visible;//时间显示
346
+                imgReturn.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar30.png"));
347
+                btnReturn.IsEnabled = false;//返回主界面可点击
347 348
                 try
348 349
                 {
349 350
                     new Thread(new ThreadStart(new Action(() =>
@@ -378,8 +379,8 @@ namespace XHWK.WKTool
378 379
                 imgBlackPenTwo.Source = new BitmapImage(new Uri("pack://application:,,,/Images/31.png"));
379 380
                 btnBlackPenTwo.IsEnabled = false;//红笔不可点击
380 381
                 txbTime.Visibility = Visibility.Hidden;//时间不显示
381
-                imgReturn.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar30.png"));
382
-                btnReturn.IsEnabled = false;//返回主界面可点击
382
+                imgReturn.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar29.png"));
383
+                btnReturn.IsEnabled = true;//返回主界面可点击
383 384
                 #region 2秒内不可点击
384 385
                 new Thread(new ThreadStart(new Action(() =>
385 386
                 {
@@ -880,9 +881,14 @@ namespace XHWK.WKTool
880 881
         {
881 882
             if (!txbTime.Text.Equals("00:00"))
882 883
             {
883
-                MessageBoxResult dr = MessageWindow.Show("返回主界面视频不保存,是否返回?", "提示", MessageBoxButton.YesNo);
884
+                MessageBoxResult dr = MessageWindow.Show("返回主界面视频不保存,是否返回?", "提示", MessageBoxButton.OKCancel);
884 885
                 if (dr == MessageBoxResult.OK)
885 886
                 {
887
+                    IsSuspend = true;
888
+                    txbTime.Text = "00:00";
889
+
890
+                    txbTime.Visibility = Visibility.Hidden;
891
+                    End();
886 892
                     if (APP.W_XHMicroLessonSystemWindow == null)
887 893
                     {
888 894
                         APP.W_XHMicroLessonSystemWindow = new XHMicroLessonSystemWindow();

Loading…
Cancel
Save