|
@@ -350,13 +350,35 @@ namespace XHWK.WKTool
|
350
|
350
|
btnBlackPenTwo.IsEnabled = true;//红笔可点击
|
351
|
351
|
txbTime.Visibility = Visibility.Visible;//时间显示
|
352
|
352
|
imgReturn.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar30.png"));
|
|
353
|
+
|
353
|
354
|
btnReturn.IsEnabled = false;//返回主界面可点击
|
354
|
355
|
|
355
|
356
|
|
356
|
357
|
|
357
|
358
|
//borOne.Background = new SolidColorBrush(Colors.LightBlue);
|
|
359
|
+
|
|
360
|
+ //btnReturn.IsEnabled = false;//返回主界面可点击
|
|
361
|
+
|
358
|
362
|
try
|
359
|
363
|
{
|
|
364
|
+ #region 4秒内不可点击
|
|
365
|
+ new Thread(new ThreadStart(new Action(() =>
|
|
366
|
+ {
|
|
367
|
+ Dispatcher.Invoke(() =>
|
|
368
|
+ {
|
|
369
|
+ ImgEndRecordingScreen.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar15.png"));
|
|
370
|
+ BtnRecordingScreen.IsEnabled = false;
|
|
371
|
+ BtnStopRecordingScreen.IsEnabled = false;
|
|
372
|
+ });
|
|
373
|
+ Thread.Sleep(4000);
|
|
374
|
+ Dispatcher.Invoke(() =>
|
|
375
|
+ {
|
|
376
|
+ ImgEndRecordingScreen.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar14.png"));
|
|
377
|
+ BtnRecordingScreen.IsEnabled = true;
|
|
378
|
+ BtnStopRecordingScreen.IsEnabled = true;
|
|
379
|
+ });
|
|
380
|
+ }))).Start();
|
|
381
|
+ #endregion
|
360
|
382
|
new Thread(new ThreadStart(new Action(() =>
|
361
|
383
|
{
|
362
|
384
|
if (IsFirstRS)
|
|
@@ -386,7 +408,6 @@ namespace XHWK.WKTool
|
386
|
408
|
TimeOut();
|
387
|
409
|
IsSuspend = true;
|
388
|
410
|
ImgRecordingScreen.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar26.png"));//大圆圈三角形
|
389
|
|
- ImgEndRecordingScreen.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar15.png"));
|
390
|
411
|
BtnStopRecordingScreen.IsEnabled = false; //停止录制按钮不点击
|
391
|
412
|
imgBlackPenOne.Source = new BitmapImage(new Uri("pack://application:,,,/Images/31.png"));
|
392
|
413
|
btnBlackPenOne.IsEnabled = false;//蓝笔不可点击
|
|
@@ -394,12 +415,13 @@ namespace XHWK.WKTool
|
394
|
415
|
btnBlackPenTwo.IsEnabled = false;//红笔不可点击
|
395
|
416
|
txbTime.Visibility = Visibility.Hidden;//时间不显示
|
396
|
417
|
imgReturn.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar29.png"));
|
397
|
|
- btnReturn.IsEnabled = true;//返回主界面可点击
|
|
418
|
+ //btnReturn.IsEnabled = true;//返回主界面可点击
|
398
|
419
|
#region 2秒内不可点击
|
399
|
420
|
new Thread(new ThreadStart(new Action(() =>
|
400
|
421
|
{
|
401
|
422
|
Dispatcher.Invoke(() =>
|
402
|
423
|
{
|
|
424
|
+ ImgEndRecordingScreen.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar15.png"));
|
403
|
425
|
BtnRecordingScreen.IsEnabled = false;
|
404
|
426
|
BtnStopRecordingScreen.IsEnabled = false;
|
405
|
427
|
});
|
|
@@ -927,60 +949,36 @@ namespace XHWK.WKTool
|
927
|
949
|
/// <param name="e"></param>
|
928
|
950
|
private void BtnReturn_Click(object sender, RoutedEventArgs e)
|
929
|
951
|
{
|
930
|
|
- MessageBoxResult br=MessageWindow.Show("退出将不保存当前录屏!", "提示", MessageBoxButton.OKCancel);
|
931
|
|
- if(br==MessageBoxResult.Cancel)
|
932
|
|
- {
|
933
|
|
- return;
|
934
|
|
- }
|
935
|
|
- k_hook.Stop();
|
936
|
|
- IsSuspend = true;
|
937
|
|
- txbTime.Text = "00:00";
|
938
|
|
-
|
939
|
|
- txbTime.Visibility = Visibility.Hidden;
|
940
|
|
- End();
|
941
|
|
- if (APP.W_PracticeWindow != null)
|
|
952
|
+ if (!IsFirstRS)
|
942
|
953
|
{
|
943
|
|
- if (APP.W_PracticeWindow.Visibility == Visibility.Visible)
|
|
954
|
+ MessageBoxResult br = MessageWindow.Show("退出将不保存当前录屏!", "提示", MessageBoxButton.OKCancel);
|
|
955
|
+ if (br == MessageBoxResult.Cancel)
|
944
|
956
|
{
|
945
|
|
- APP.W_PracticeWindow.Hide();
|
|
957
|
+ return;
|
946
|
958
|
}
|
947
|
|
- }
|
948
|
|
- if (gridToolbar.Visibility == Visibility.Visible)
|
949
|
|
- {
|
950
|
|
- gridToolbar.Visibility = Visibility.Hidden;
|
951
|
|
- gridColour.Visibility = Visibility.Hidden;
|
952
|
|
- gridThickness.Visibility = Visibility.Hidden;
|
953
|
|
- }
|
954
|
|
- if (APP.W_XHMicroLessonSystemWindow == null)
|
955
|
|
- {
|
956
|
|
- MessageBoxResult dr = MessageWindow.Show("返回主界面视频不保存,是否返回?", "提示", MessageBoxButton.OKCancel);
|
957
|
|
- if (dr == MessageBoxResult.OK)
|
958
|
|
- {
|
959
|
|
- IsSuspend = true;
|
960
|
|
- txbTime.Text = "00:00";
|
|
959
|
+ k_hook.Stop();
|
|
960
|
+ IsSuspend = true;
|
|
961
|
+ txbTime.Text = "00:00";
|
961
|
962
|
|
962
|
|
- txbTime.Visibility = Visibility.Hidden;
|
963
|
|
- End();
|
964
|
|
- if (APP.W_XHMicroLessonSystemWindow == null)
|
|
963
|
+ txbTime.Visibility = Visibility.Hidden;
|
|
964
|
+ End();
|
|
965
|
+ if (APP.W_PracticeWindow != null)
|
|
966
|
+ {
|
|
967
|
+ if (APP.W_PracticeWindow.Visibility == Visibility.Visible)
|
965
|
968
|
{
|
966
|
|
- APP.W_XHMicroLessonSystemWindow = new XHMicroLessonSystemWindow();
|
|
969
|
+ APP.W_PracticeWindow.Hide();
|
967
|
970
|
}
|
968
|
|
- APP.W_XHMicroLessonSystemWindow.Show();
|
969
|
|
- Hide();
|
970
|
971
|
}
|
971
|
|
- }
|
972
|
|
- else
|
973
|
|
- {
|
|
972
|
+ if (gridToolbar.Visibility == Visibility.Visible)
|
|
973
|
+ {
|
|
974
|
+ gridToolbar.Visibility = Visibility.Hidden;
|
|
975
|
+ gridColour.Visibility = Visibility.Hidden;
|
|
976
|
+ gridThickness.Visibility = Visibility.Hidden;
|
|
977
|
+ }
|
974
|
978
|
if (APP.W_XHMicroLessonSystemWindow == null)
|
975
|
979
|
{
|
976
|
980
|
APP.W_XHMicroLessonSystemWindow = new XHMicroLessonSystemWindow();
|
977
|
981
|
}
|
978
|
|
- APP.W_XHMicroLessonSystemWindow.Show();
|
979
|
|
- Hide();
|
980
|
|
- }
|
981
|
|
- APP.W_XHMicroLessonSystemWindow.Show();
|
982
|
|
- if (!IsFirstRS)
|
983
|
|
- {
|
984
|
982
|
try
|
985
|
983
|
{
|
986
|
984
|
try
|
|
@@ -996,7 +994,7 @@ namespace XHWK.WKTool
|
996
|
994
|
{
|
997
|
995
|
VideoInfo = null;
|
998
|
996
|
FileToolsCommon.DeleteDirectory(APP.WKData.WkPath + "temprs/");
|
999
|
|
-
|
|
997
|
+
|
1000
|
998
|
}))).Start();
|
1001
|
999
|
}
|
1002
|
1000
|
catch (Exception ex)
|
|
@@ -1004,6 +1002,7 @@ namespace XHWK.WKTool
|
1004
|
1002
|
LogHelper.WriteErrLog("【录屏返回】(BtnStopRecordingScreen_Click)" + ex.Message, ex);
|
1005
|
1003
|
}
|
1006
|
1004
|
}
|
|
1005
|
+ APP.W_XHMicroLessonSystemWindow.Show();
|
1007
|
1006
|
Hide();
|
1008
|
1007
|
}
|
1009
|
1008
|
}
|