|
@@ -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
|
|
|
@@ -1298,6 +1327,7 @@ namespace XHWK.WKTool
|
1298
|
1327
|
ImgStop.Visibility = Visibility.Collapsed;
|
1299
|
1328
|
ImgStopTwo.Visibility = Visibility.Visible;
|
1300
|
1329
|
TxbRecordingWord.Text = "暂停";
|
|
1330
|
+ Stack();
|
1301
|
1331
|
#region 2秒内不可点击
|
1302
|
1332
|
new Thread(new ThreadStart(new Action(() =>
|
1303
|
1333
|
{
|
|
@@ -1340,6 +1370,7 @@ namespace XHWK.WKTool
|
1340
|
1370
|
ImgStop.Visibility = Visibility.Visible;
|
1341
|
1371
|
ImgStopTwo.Visibility = Visibility.Collapsed;
|
1342
|
1372
|
TxbRecordingWord.Text = "继续";
|
|
1373
|
+ TimeOut();
|
1343
|
1374
|
#region 2秒内不可点击
|
1344
|
1375
|
new Thread(new ThreadStart(new Action(() =>
|
1345
|
1376
|
{
|
|
@@ -1441,6 +1472,7 @@ namespace XHWK.WKTool
|
1441
|
1472
|
ImgRecord.Source = new BitmapImage(new Uri("pack://application:,,,/Images/microLessonSystem_14.png"));
|
1442
|
1473
|
ImgStop.Visibility = Visibility.Visible;
|
1443
|
1474
|
ImgStopTwo.Visibility = Visibility.Collapsed;
|
|
1475
|
+ TimeOut();
|
1444
|
1476
|
txbType.Text = "保存中";
|
1445
|
1477
|
#region 2秒内不可点击
|
1446
|
1478
|
new Thread(new ThreadStart(new Action(() =>
|
|
@@ -1454,6 +1486,15 @@ namespace XHWK.WKTool
|
1454
|
1486
|
#endregion
|
1455
|
1487
|
try
|
1456
|
1488
|
{
|
|
1489
|
+ #region 清空画板数据
|
|
1490
|
+ APP.pageData.currpage = 0;
|
|
1491
|
+ APP.pageData.pagenum = 0;
|
|
1492
|
+ myblackboard.clear();
|
|
1493
|
+ APP.PageDrawList.Clear();
|
|
1494
|
+ imgCanvas.Source = null;
|
|
1495
|
+ imgDocumentation.Source = null;
|
|
1496
|
+ #endregion
|
|
1497
|
+
|
1457
|
1498
|
//缩略图
|
1458
|
1499
|
string ThumbnailPath = FileToolsCommon.GetDirectoryName(VideoSavePathName) + "ThumbnailPath/";
|
1459
|
1500
|
FileToolsCommon.CreateDirectory(ThumbnailPath);
|
|
@@ -1503,6 +1544,9 @@ namespace XHWK.WKTool
|
1503
|
1544
|
BtnRecord.IsEnabled = true;
|
1504
|
1545
|
btnStop.IsEnabled = true;
|
1505
|
1546
|
TxbRecordingWord.Text = "录制";
|
|
1547
|
+ End();
|
|
1548
|
+ txbTime.Text = "";
|
|
1549
|
+ txbTime.Visibility = Visibility.Hidden;
|
1506
|
1550
|
txbType.Text = "";
|
1507
|
1551
|
});
|
1508
|
1552
|
FileToolsCommon.DeleteFile(ThumbnailPathName);
|
|
@@ -1549,7 +1593,7 @@ namespace XHWK.WKTool
|
1549
|
1593
|
APP.pageData.pagenum += 1;
|
1550
|
1594
|
gridPage.Visibility = Visibility.Visible;//页码大于0 显示
|
1551
|
1595
|
APP.pageData.currpage = APP.pageData.pagenum;
|
1552
|
|
- myblackboard.changepage(APP.pageData.currpage - 1);
|
|
1596
|
+ //myblackboard.changepage(APP.pageData.currpage - 1);
|
1553
|
1597
|
///清空页面图片UI
|
1554
|
1598
|
imgCanvas.Source = null;
|
1555
|
1599
|
imgDocumentation.Source = null;
|
|
@@ -1557,7 +1601,7 @@ namespace XHWK.WKTool
|
1557
|
1601
|
Model_DrawData model_DrawData = new Model_DrawData();
|
1558
|
1602
|
model_DrawData.PageNum = APP.pageData.currpage;
|
1559
|
1603
|
APP.PageDrawList.Add(model_DrawData);
|
1560
|
|
- APP.SaveDraw();
|
|
1604
|
+ //APP.SaveDraw();
|
1561
|
1605
|
if (btnImport.IsEnabled == true)
|
1562
|
1606
|
{
|
1563
|
1607
|
///截图可用
|