|
@@ -105,8 +105,6 @@ namespace XHWK.WKTool
|
105
|
105
|
gridToolbar.Visibility = Visibility.Hidden;
|
106
|
106
|
gridColour.Visibility = Visibility.Hidden;
|
107
|
107
|
gridThickness.Visibility = Visibility.Hidden;
|
108
|
|
- imgReturn.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar29.png"));
|
109
|
|
- btnReturn.IsEnabled = true;//返回主界面可点击
|
110
|
108
|
ImgRecordingScreen.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar26.png"));//大圆圈三角形
|
111
|
109
|
ImgEndRecordingScreen.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar15.png"));
|
112
|
110
|
BtnStopRecordingScreen.IsEnabled = false; //停止录制按钮不点击
|
|
@@ -350,13 +348,7 @@ namespace XHWK.WKTool
|
350
|
348
|
btnBlackPenTwo.IsEnabled = true;//红笔可点击
|
351
|
349
|
txbTime.Visibility = Visibility.Visible;//时间显示
|
352
|
350
|
imgReturn.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar30.png"));
|
353
|
|
-
|
354
|
|
- btnReturn.IsEnabled = false;//返回主界面可点击
|
355
|
|
-
|
356
|
|
-
|
357
|
|
-
|
358
|
351
|
//borOne.Background = new SolidColorBrush(Colors.LightBlue);
|
359
|
|
-
|
360
|
352
|
//btnReturn.IsEnabled = false;//返回主界面可点击
|
361
|
353
|
|
362
|
354
|
try
|
|
@@ -415,7 +407,7 @@ namespace XHWK.WKTool
|
415
|
407
|
//btnBlackPenTwo.IsEnabled = false;//红笔不可点击
|
416
|
408
|
txbTime.Visibility = Visibility.Hidden;//时间不显示
|
417
|
409
|
imgReturn.Source = new BitmapImage(new Uri("pack://application:,,,/Images/Toobar29.png"));
|
418
|
|
- btnReturn.IsEnabled = true;//返回主界面可点击
|
|
410
|
+ //btnReturn.IsEnabled = true;//返回主界面可点击
|
419
|
411
|
#region 2秒内不可点击
|
420
|
412
|
new Thread(new ThreadStart(new Action(() =>
|
421
|
413
|
{
|
|
@@ -551,8 +543,9 @@ namespace XHWK.WKTool
|
551
|
543
|
Directory.CreateDirectory(tempPath);
|
552
|
544
|
}
|
553
|
545
|
string imagePath = Path.Combine(tempPath, time + ".jpg");
|
|
546
|
+ this.Hide();
|
554
|
547
|
ImageHelper.GetScreenshot(new System.Drawing.Rectangle(0, 0, 0, 0), imagePath, true, out BitmapImage bitmap);
|
555
|
|
-
|
|
548
|
+ this.Show();
|
556
|
549
|
try
|
557
|
550
|
{
|
558
|
551
|
if (flg == 11)
|
|
@@ -832,8 +825,10 @@ namespace XHWK.WKTool
|
832
|
825
|
Directory.CreateDirectory(tempPath);
|
833
|
826
|
}
|
834
|
827
|
string imagePath = Path.Combine(tempPath, time + ".jpg");
|
835
|
|
- ImageHelper.GetScreenshot(new System.Drawing.Rectangle(0, 0, 0, 0), imagePath, true, out BitmapImage bitmap);
|
836
|
828
|
|
|
829
|
+ this.Hide();
|
|
830
|
+ ImageHelper.GetScreenshot(new System.Drawing.Rectangle(0, 0, 0, 0), imagePath, true, out BitmapImage bitmap);
|
|
831
|
+ this.Show();
|
837
|
832
|
try
|
838
|
833
|
{
|
839
|
834
|
if (flg == 10)
|