Browse Source

返回主界面 提示

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

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

24
         private int ImgNum = 21;
24
         private int ImgNum = 21;
25
         public void Initialize(bool ShowlblShortcut = false, int changeTime = 2100)
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
             ImgNum = 21;
35
             ImgNum = 21;
36
             bool IsStart = true;
36
             bool IsStart = true;
37
             new Thread(new ThreadStart(new Action(() =>
37
             new Thread(new ThreadStart(new Action(() =>

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

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

Loading…
Cancel
Save