|
@@ -343,9 +343,27 @@ namespace XHWK.WKTool
|
343
|
343
|
btnBlackPenTwo.IsEnabled = true;//红笔可点击
|
344
|
344
|
txbTime.Visibility = Visibility.Visible;//时间显示
|
345
|
345
|
imgReturn.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar30.png"));
|
346
|
|
- btnReturn.IsEnabled = false;//返回主界面可点击
|
|
346
|
+ //btnReturn.IsEnabled = false;//返回主界面可点击
|
347
|
347
|
try
|
348
|
348
|
{
|
|
349
|
+ #region 4秒内不可点击
|
|
350
|
+ new Thread(new ThreadStart(new Action(() =>
|
|
351
|
+ {
|
|
352
|
+ Dispatcher.Invoke(() =>
|
|
353
|
+ {
|
|
354
|
+ ImgEndRecordingScreen.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar15.png"));
|
|
355
|
+ BtnRecordingScreen.IsEnabled = false;
|
|
356
|
+ BtnStopRecordingScreen.IsEnabled = false;
|
|
357
|
+ });
|
|
358
|
+ Thread.Sleep(4000);
|
|
359
|
+ Dispatcher.Invoke(() =>
|
|
360
|
+ {
|
|
361
|
+ ImgEndRecordingScreen.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar14.png"));
|
|
362
|
+ BtnRecordingScreen.IsEnabled = true;
|
|
363
|
+ BtnStopRecordingScreen.IsEnabled = true;
|
|
364
|
+ });
|
|
365
|
+ }))).Start();
|
|
366
|
+ #endregion
|
349
|
367
|
new Thread(new ThreadStart(new Action(() =>
|
350
|
368
|
{
|
351
|
369
|
if (IsFirstRS)
|
|
@@ -375,7 +393,6 @@ namespace XHWK.WKTool
|
375
|
393
|
TimeOut();
|
376
|
394
|
IsSuspend = true;
|
377
|
395
|
ImgRecordingScreen.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar26.png"));//大圆圈三角形
|
378
|
|
- ImgEndRecordingScreen.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar15.png"));
|
379
|
396
|
BtnStopRecordingScreen.IsEnabled = false; //停止录制按钮不点击
|
380
|
397
|
imgBlackPenOne.Source = new BitmapImage(new Uri("pack://application:,,,/Images/31.png"));
|
381
|
398
|
btnBlackPenOne.IsEnabled = false;//蓝笔不可点击
|
|
@@ -383,12 +400,13 @@ namespace XHWK.WKTool
|
383
|
400
|
btnBlackPenTwo.IsEnabled = false;//红笔不可点击
|
384
|
401
|
txbTime.Visibility = Visibility.Hidden;//时间不显示
|
385
|
402
|
imgReturn.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar29.png"));
|
386
|
|
- btnReturn.IsEnabled = true;//返回主界面可点击
|
|
403
|
+ //btnReturn.IsEnabled = true;//返回主界面可点击
|
387
|
404
|
#region 2秒内不可点击
|
388
|
405
|
new Thread(new ThreadStart(new Action(() =>
|
389
|
406
|
{
|
390
|
407
|
Dispatcher.Invoke(() =>
|
391
|
408
|
{
|
|
409
|
+ ImgEndRecordingScreen.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar15.png"));
|
392
|
410
|
BtnRecordingScreen.IsEnabled = false;
|
393
|
411
|
BtnStopRecordingScreen.IsEnabled = false;
|
394
|
412
|
});
|
|
@@ -882,60 +900,36 @@ namespace XHWK.WKTool
|
882
|
900
|
/// <param name="e"></param>
|
883
|
901
|
private void BtnReturn_Click(object sender, RoutedEventArgs e)
|
884
|
902
|
{
|
885
|
|
- MessageBoxResult br=MessageWindow.Show("退出将不保存当前录屏!", "提示", MessageBoxButton.OKCancel);
|
886
|
|
- if(br==MessageBoxResult.Cancel)
|
887
|
|
- {
|
888
|
|
- return;
|
889
|
|
- }
|
890
|
|
- k_hook.Stop();
|
891
|
|
- IsSuspend = true;
|
892
|
|
- txbTime.Text = "00:00";
|
893
|
|
-
|
894
|
|
- txbTime.Visibility = Visibility.Hidden;
|
895
|
|
- End();
|
896
|
|
- if (APP.W_PracticeWindow != null)
|
|
903
|
+ if (!IsFirstRS)
|
897
|
904
|
{
|
898
|
|
- if (APP.W_PracticeWindow.Visibility == Visibility.Visible)
|
|
905
|
+ MessageBoxResult br = MessageWindow.Show("退出将不保存当前录屏!", "提示", MessageBoxButton.OKCancel);
|
|
906
|
+ if (br == MessageBoxResult.Cancel)
|
899
|
907
|
{
|
900
|
|
- APP.W_PracticeWindow.Hide();
|
|
908
|
+ return;
|
901
|
909
|
}
|
902
|
|
- }
|
903
|
|
- if (gridToolbar.Visibility == Visibility.Visible)
|
904
|
|
- {
|
905
|
|
- gridToolbar.Visibility = Visibility.Hidden;
|
906
|
|
- gridColour.Visibility = Visibility.Hidden;
|
907
|
|
- gridThickness.Visibility = Visibility.Hidden;
|
908
|
|
- }
|
909
|
|
- if (APP.W_XHMicroLessonSystemWindow == null)
|
910
|
|
- {
|
911
|
|
- MessageBoxResult dr = MessageWindow.Show("返回主界面视频不保存,是否返回?", "提示", MessageBoxButton.OKCancel);
|
912
|
|
- if (dr == MessageBoxResult.OK)
|
913
|
|
- {
|
914
|
|
- IsSuspend = true;
|
915
|
|
- txbTime.Text = "00:00";
|
|
910
|
+ k_hook.Stop();
|
|
911
|
+ IsSuspend = true;
|
|
912
|
+ txbTime.Text = "00:00";
|
916
|
913
|
|
917
|
|
- txbTime.Visibility = Visibility.Hidden;
|
918
|
|
- End();
|
919
|
|
- if (APP.W_XHMicroLessonSystemWindow == null)
|
|
914
|
+ txbTime.Visibility = Visibility.Hidden;
|
|
915
|
+ End();
|
|
916
|
+ if (APP.W_PracticeWindow != null)
|
|
917
|
+ {
|
|
918
|
+ if (APP.W_PracticeWindow.Visibility == Visibility.Visible)
|
920
|
919
|
{
|
921
|
|
- APP.W_XHMicroLessonSystemWindow = new XHMicroLessonSystemWindow();
|
|
920
|
+ APP.W_PracticeWindow.Hide();
|
922
|
921
|
}
|
923
|
|
- APP.W_XHMicroLessonSystemWindow.Show();
|
924
|
|
- Hide();
|
925
|
922
|
}
|
926
|
|
- }
|
927
|
|
- else
|
928
|
|
- {
|
|
923
|
+ if (gridToolbar.Visibility == Visibility.Visible)
|
|
924
|
+ {
|
|
925
|
+ gridToolbar.Visibility = Visibility.Hidden;
|
|
926
|
+ gridColour.Visibility = Visibility.Hidden;
|
|
927
|
+ gridThickness.Visibility = Visibility.Hidden;
|
|
928
|
+ }
|
929
|
929
|
if (APP.W_XHMicroLessonSystemWindow == null)
|
930
|
930
|
{
|
931
|
931
|
APP.W_XHMicroLessonSystemWindow = new XHMicroLessonSystemWindow();
|
932
|
932
|
}
|
933
|
|
- APP.W_XHMicroLessonSystemWindow.Show();
|
934
|
|
- Hide();
|
935
|
|
- }
|
936
|
|
- APP.W_XHMicroLessonSystemWindow.Show();
|
937
|
|
- if (!IsFirstRS)
|
938
|
|
- {
|
939
|
933
|
try
|
940
|
934
|
{
|
941
|
935
|
try
|
|
@@ -951,7 +945,7 @@ namespace XHWK.WKTool
|
951
|
945
|
{
|
952
|
946
|
VideoInfo = null;
|
953
|
947
|
FileToolsCommon.DeleteDirectory(APP.WKData.WkPath + "temprs/");
|
954
|
|
-
|
|
948
|
+
|
955
|
949
|
}))).Start();
|
956
|
950
|
}
|
957
|
951
|
catch (Exception ex)
|
|
@@ -959,6 +953,7 @@ namespace XHWK.WKTool
|
959
|
953
|
LogHelper.WriteErrLog("【录屏返回】(BtnStopRecordingScreen_Click)" + ex.Message, ex);
|
960
|
954
|
}
|
961
|
955
|
}
|
|
956
|
+ APP.W_XHMicroLessonSystemWindow.Show();
|
962
|
957
|
Hide();
|
963
|
958
|
}
|
964
|
959
|
}
|