|
@@ -201,6 +201,7 @@ namespace XHWK.WKTool
|
201
|
201
|
}
|
202
|
202
|
|
203
|
203
|
string time = string.Format("{0:D2}:{1:D2}",/* _timeSpan.Hours,*/ _timeSpan.Minutes, _timeSpan.Seconds);
|
|
204
|
+ txbTime.Text = time;
|
204
|
205
|
//txbTime.Text = time;
|
205
|
206
|
}
|
206
|
207
|
/// <summary>
|
|
@@ -654,10 +655,14 @@ namespace XHWK.WKTool
|
654
|
655
|
/// <param name="e"></param>
|
655
|
656
|
private void BtnRed_Click(object sender, RoutedEventArgs e)
|
656
|
657
|
{
|
657
|
|
-
|
658
|
658
|
//设置 DrawingAttributes 的 Color 属性设置颜色
|
659
|
659
|
drawingAttributes.Color = Colors.Red;
|
660
|
660
|
Color = Colors.Red;
|
|
661
|
+ imgRed.Visibility = Visibility.Visible;
|
|
662
|
+ imgGray.Visibility = Visibility.Collapsed;
|
|
663
|
+ imgCyanBlue.Visibility = Visibility.Collapsed;
|
|
664
|
+ imgYellow.Visibility = Visibility.Collapsed;
|
|
665
|
+ imgBlue.Visibility = Visibility.Collapsed;
|
661
|
666
|
}
|
662
|
667
|
/// <summary>
|
663
|
668
|
/// 画笔颜色事件 黑色
|
|
@@ -668,6 +673,11 @@ namespace XHWK.WKTool
|
668
|
673
|
{
|
669
|
674
|
drawingAttributes.Color = Colors.Black;
|
670
|
675
|
Color = Colors.Black;
|
|
676
|
+ imgRed.Visibility = Visibility.Collapsed;
|
|
677
|
+ imgGray.Visibility = Visibility.Visible;
|
|
678
|
+ imgCyanBlue.Visibility = Visibility.Collapsed;
|
|
679
|
+ imgYellow.Visibility = Visibility.Collapsed;
|
|
680
|
+ imgBlue.Visibility = Visibility.Collapsed;
|
671
|
681
|
}
|
672
|
682
|
/// <summary>
|
673
|
683
|
/// 画笔颜色事件 青色
|
|
@@ -678,6 +688,11 @@ namespace XHWK.WKTool
|
678
|
688
|
{
|
679
|
689
|
drawingAttributes.Color = Colors.LimeGreen;
|
680
|
690
|
Color = Colors.LimeGreen;
|
|
691
|
+ imgRed.Visibility = Visibility.Collapsed;
|
|
692
|
+ imgGray.Visibility = Visibility.Collapsed;
|
|
693
|
+ imgCyanBlue.Visibility = Visibility.Visible;
|
|
694
|
+ imgYellow.Visibility = Visibility.Collapsed;
|
|
695
|
+ imgBlue.Visibility = Visibility.Collapsed;
|
681
|
696
|
}
|
682
|
697
|
/// <summary>
|
683
|
698
|
/// 画笔颜色事件 黄色
|
|
@@ -688,6 +703,11 @@ namespace XHWK.WKTool
|
688
|
703
|
{
|
689
|
704
|
drawingAttributes.Color = Colors.Gold;
|
690
|
705
|
Color = Colors.Gold;
|
|
706
|
+ imgRed.Visibility = Visibility.Collapsed;
|
|
707
|
+ imgGray.Visibility = Visibility.Collapsed;
|
|
708
|
+ imgCyanBlue.Visibility = Visibility.Collapsed;
|
|
709
|
+ imgYellow.Visibility = Visibility.Visible;
|
|
710
|
+ imgBlue.Visibility = Visibility.Collapsed;
|
691
|
711
|
}
|
692
|
712
|
/// <summary>
|
693
|
713
|
/// 画笔颜色事件 蓝色
|
|
@@ -698,6 +718,11 @@ namespace XHWK.WKTool
|
698
|
718
|
{
|
699
|
719
|
drawingAttributes.Color = Colors.DeepSkyBlue;
|
700
|
720
|
Color = Colors.DeepSkyBlue;
|
|
721
|
+ imgRed.Visibility = Visibility.Collapsed;
|
|
722
|
+ imgGray.Visibility = Visibility.Collapsed;
|
|
723
|
+ imgCyanBlue.Visibility = Visibility.Collapsed;
|
|
724
|
+ imgYellow.Visibility = Visibility.Collapsed;
|
|
725
|
+ imgBlue.Visibility = Visibility.Visible;
|
701
|
726
|
}
|
702
|
727
|
/// <summary>
|
703
|
728
|
/// 画笔粗细事件 细
|
|
@@ -1063,14 +1088,17 @@ namespace XHWK.WKTool
|
1063
|
1088
|
{
|
1064
|
1089
|
APP.pageData.currpage = APP.pageData.pagenum + 1;
|
1065
|
1090
|
APP.pageData.pagenum += num;
|
|
1091
|
+ gridPage.Visibility = Visibility.Visible;//页码大于0 显示
|
1066
|
1092
|
}
|
1067
|
1093
|
if (APP.pageData.currpage > 0 && APP.pageData.currpage < APP.PageDrawList.Count)
|
1068
|
1094
|
{
|
1069
|
|
- imgDocumentation.Source = new BitmapImage(new Uri(APP.PageDrawList[APP.pageData.currpage - 1].PageImagePath));//给当前页面展示图片
|
|
1095
|
+
|
1070
|
1096
|
imgCanvas.Source = null;
|
1071
|
1097
|
ImgScreenshot.Visibility = Visibility.Collapsed;//当前页为导入时不可截图
|
1072
|
1098
|
ImgScreenshotTwo.Visibility = Visibility.Visible;
|
1073
|
1099
|
btnScreenshot.IsEnabled = false;
|
|
1100
|
+ imgDocumentation.Visibility = Visibility.Visible;
|
|
1101
|
+ imgDocumentation.Source = new BitmapImage(new Uri(APP.PageDrawList[APP.pageData.currpage - 1].PageImagePath));//给当前页面展示图片
|
1074
|
1102
|
}
|
1075
|
1103
|
else
|
1076
|
1104
|
{
|
|
@@ -1197,6 +1225,7 @@ namespace XHWK.WKTool
|
1197
|
1225
|
t.Start();
|
1198
|
1226
|
}
|
1199
|
1227
|
t.Interval = new TimeSpan(0, 0, 0, 1);
|
|
1228
|
+ txbTime.Visibility = Visibility.Visible;
|
1200
|
1229
|
Stack();
|
1201
|
1230
|
#endregion
|
1202
|
1231
|
|
|
@@ -1297,6 +1326,7 @@ namespace XHWK.WKTool
|
1297
|
1326
|
ImgStop.Visibility = Visibility.Collapsed;
|
1298
|
1327
|
ImgStopTwo.Visibility = Visibility.Visible;
|
1299
|
1328
|
TxbRecordingWord.Text = "暂停";
|
|
1329
|
+ Stack();
|
1300
|
1330
|
#region 2秒内不可点击
|
1301
|
1331
|
new Thread(new ThreadStart(new Action(() =>
|
1302
|
1332
|
{
|
|
@@ -1339,6 +1369,7 @@ namespace XHWK.WKTool
|
1339
|
1369
|
ImgStop.Visibility = Visibility.Visible;
|
1340
|
1370
|
ImgStopTwo.Visibility = Visibility.Collapsed;
|
1341
|
1371
|
TxbRecordingWord.Text = "继续";
|
|
1372
|
+ TimeOut();
|
1342
|
1373
|
#region 2秒内不可点击
|
1343
|
1374
|
new Thread(new ThreadStart(new Action(() =>
|
1344
|
1375
|
{
|
|
@@ -1440,6 +1471,7 @@ namespace XHWK.WKTool
|
1440
|
1471
|
ImgRecord.Source = new BitmapImage(new Uri("pack://application:,,,/Images/microLessonSystem_14.png"));
|
1441
|
1472
|
ImgStop.Visibility = Visibility.Visible;
|
1442
|
1473
|
ImgStopTwo.Visibility = Visibility.Collapsed;
|
|
1474
|
+ TimeOut();
|
1443
|
1475
|
txbType.Text = "保存中";
|
1444
|
1476
|
#region 2秒内不可点击
|
1445
|
1477
|
new Thread(new ThreadStart(new Action(() =>
|
|
@@ -1453,6 +1485,13 @@ namespace XHWK.WKTool
|
1453
|
1485
|
#endregion
|
1454
|
1486
|
try
|
1455
|
1487
|
{
|
|
1488
|
+ #region 清空画板数据
|
|
1489
|
+ APP.pageData.currpage = 0;
|
|
1490
|
+ APP.pageData.pagenum = 0;
|
|
1491
|
+ myblackboard.clear();
|
|
1492
|
+ APP.PageDrawList.Clear();
|
|
1493
|
+ #endregion
|
|
1494
|
+
|
1456
|
1495
|
//缩略图
|
1457
|
1496
|
string ThumbnailPath = FileToolsCommon.GetDirectoryName(VideoSavePathName) + "ThumbnailPath/";
|
1458
|
1497
|
FileToolsCommon.CreateDirectory(ThumbnailPath);
|
|
@@ -1502,6 +1541,9 @@ namespace XHWK.WKTool
|
1502
|
1541
|
BtnRecord.IsEnabled = true;
|
1503
|
1542
|
btnStop.IsEnabled = true;
|
1504
|
1543
|
TxbRecordingWord.Text = "录制";
|
|
1544
|
+ End();
|
|
1545
|
+ txbTime.Text = "";
|
|
1546
|
+ txbTime.Visibility = Visibility.Hidden;
|
1505
|
1547
|
txbType.Text = "";
|
1506
|
1548
|
});
|
1507
|
1549
|
FileToolsCommon.DeleteFile(ThumbnailPathName);
|