Browse Source

Merge remote-tracking branch 'origin/zhangxueyang' into zyy

tags/录制修改前
耀 4 years ago
parent
commit
4177697670

+ 5
- 0
XHWK.Model/Model_DrawData.cs View File

19
         //private List<PointF> _Handwriting;
19
         //private List<PointF> _Handwriting;
20
         private string _pdfImagePath;
20
         private string _pdfImagePath;
21
         private bool _imgDocumentation;
21
         private bool _imgDocumentation;
22
+        private string _type;
22
         /// <summary>
23
         /// <summary>
23
         /// 页码
24
         /// 页码
24
         /// </summary>
25
         /// </summary>
52
         /// </summary>
53
         /// </summary>
53
         public bool ImgDocumentation { get => _imgDocumentation; set => _imgDocumentation = value; }
54
         public bool ImgDocumentation { get => _imgDocumentation; set => _imgDocumentation = value; }
54
         public ScaleTransform ImageSizes { get => _ImageSizes; set => _ImageSizes = value; }
55
         public ScaleTransform ImageSizes { get => _ImageSizes; set => _ImageSizes = value; }
56
+        /// <summary>
57
+        /// ppt word
58
+        /// </summary>
59
+        public string Type { get => _type; set => _type = value; }
55
         ///// <summary>
60
         ///// <summary>
56
         ///// 笔颜色 十六进制
61
         ///// 笔颜色 十六进制
57
         ///// </summary>
62
         ///// </summary>

+ 2
- 2
XHWK.WKTool/App.config View File

33
     <!--上传每片大小 Mb-->
33
     <!--上传每片大小 Mb-->
34
     <add key="UploadSliceLen" value="1" />
34
     <add key="UploadSliceLen" value="1" />
35
     <!--版本号-->
35
     <!--版本号-->
36
-    <add key="VersionCode" value="18" />
37
-    <add key="VersionName" value="1.1.7" />
36
+    <add key="VersionCode" value="20" />
37
+    <add key="VersionName" value="1.1.9" />
38
     <add key="ClientSettingsProvider.ServiceUri" value="" />
38
     <add key="ClientSettingsProvider.ServiceUri" value="" />
39
   </appSettings>
39
   </appSettings>
40
   <system.web>
40
   <system.web>

BIN
XHWK.WKTool/Images/Toobar26.png View File


+ 1
- 1
XHWK.WKTool/PrintWindow.xaml View File

84
                     Margin="50,20,50,0"
84
                     Margin="50,20,50,0"
85
                     Visibility="Visible" />
85
                     Visibility="Visible" />
86
                     <Label Grid.Row="0"
86
                     <Label Grid.Row="0"
87
-                    HorizontalAlignment="Center" Width="120"
87
+                    HorizontalAlignment="Center" Width="60"
88
                     x:Name="lbProcess"
88
                     x:Name="lbProcess"
89
                     Height="30"
89
                     Height="30"
90
                     Margin="0,20,0,0"
90
                     Margin="0,20,0,0"

+ 5
- 5
XHWK.WKTool/PrintWindow.xaml.cs View File

118
             Dispatcher.Invoke(() =>
118
             Dispatcher.Invoke(() =>
119
             {
119
             {
120
                 pgbProcess.Value = num;
120
                 pgbProcess.Value = num;
121
-                lbProcess.Content = string.Format("{0}% / {1}%", num, 100);
121
+                lbProcess.Content = num.ToString()+"%";
122
                 if (num < 99)
122
                 if (num < 99)
123
                 {
123
                 {
124
                     num++;
124
                     num++;
166
                     num = 99;
166
                     num = 99;
167
                     times.Stop();
167
                     times.Stop();
168
                     pgbProcess.Value = 100;
168
                     pgbProcess.Value = 100;
169
-                    lbProcess.Content = string.Format("{0}% / {1}%", 100, 100);
169
+                    lbProcess.Content = "100%";
170
                     MessageWindow.Show("打印成功!");
170
                     MessageWindow.Show("打印成功!");
171
                     tip_outer.Visibility = Visibility.Collapsed;
171
                     tip_outer.Visibility = Visibility.Collapsed;
172
                 });
172
                 });
194
              {
194
              {
195
                  I = 1;
195
                  I = 1;
196
                  pgbProcess.Value = I * 100 / 100;
196
                  pgbProcess.Value = I * 100 / 100;
197
-                 lbProcess.Content = string.Format("{0}% / {1}%", I, 100);
197
+                 lbProcess.Content = I.ToString() + "%";
198
                  tip_outer.Visibility = Visibility.Visible;
198
                  tip_outer.Visibility = Visibility.Visible;
199
                  //I = 0;
199
                  //I = 0;
200
              });
200
              });
239
                             {
239
                             {
240
                                 I = 100;
240
                                 I = 100;
241
                                 pgbProcess.Value = I * 100 / 100;
241
                                 pgbProcess.Value = I * 100 / 100;
242
-                                lbProcess.Content = string.Format("{0}% / {1}%", I, 100);
242
+                                lbProcess.Content = I.ToString() + "%";
243
                                 APP.myloading.Hide();
243
                                 APP.myloading.Hide();
244
                                 I = 0;
244
                                 I = 0;
245
                             });
245
                             });
296
                 try
296
                 try
297
                 {
297
                 {
298
                         pgbProcess.Value = I * 100 / 100;
298
                         pgbProcess.Value = I * 100 / 100;
299
-                        lbProcess.Content = string.Format("{0}% / {1}%", I, 100);
299
+                        lbProcess.Content = I.ToString() + "%";
300
                         I++;
300
                         I++;
301
                 }
301
                 }
302
                 catch (Exception ex)
302
                 catch (Exception ex)

+ 2
- 2
XHWK.WKTool/Properties/AssemblyInfo.cs View File

49
 //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
49
 //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
50
 //通过使用 "*",如下所示:
50
 //通过使用 "*",如下所示:
51
 // [assembly: AssemblyVersion("1.0.*")]
51
 // [assembly: AssemblyVersion("1.0.*")]
52
-[assembly: AssemblyVersion("1.1.7.0")]
53
-[assembly: AssemblyFileVersion("1.1.7.0")]
52
+[assembly: AssemblyVersion("1.1.9.0")]
53
+[assembly: AssemblyFileVersion("1.1.9.0")]

+ 2
- 1
XHWK.WKTool/XHMicroLessonSystemWindow.xaml View File

330
                                 </Grid>
330
                                 </Grid>
331
                             </Border>
331
                             </Border>
332
                         </Grid>
332
                         </Grid>
333
-                        <Image x:Name="imgDocumentation" Visibility="Visible" VerticalAlignment="Top"/>
333
+                        <Image x:Name="imgDocumentation" Visibility="Visible" VerticalAlignment="Top" Stretch="Fill"/>
334
+                        <Image x:Name="imgPPT" Visibility="Visible" VerticalAlignment="Top"/>
334
                         <!--导入图片-->
335
                         <!--导入图片-->
335
                         <!--<Button Cursor="Hand" x:Name="btnOk" Height="50" Width="50" Content="√" FontSize="26" Background="#2E8CF0" Foreground="#FFFFFF" Click="btnOk_Click" Visibility="Collapsed"/>-->
336
                         <!--<Button Cursor="Hand" x:Name="btnOk" Height="50" Width="50" Content="√" FontSize="26" Background="#2E8CF0" Foreground="#FFFFFF" Click="btnOk_Click" Visibility="Collapsed"/>-->
336
                         <InkCanvas Grid.Row="0" x:Name="blackboard_canvas"  Background="Transparent" Visibility="Collapsed" Grid.ColumnSpan="2"/>
337
                         <InkCanvas Grid.Row="0" x:Name="blackboard_canvas"  Background="Transparent" Visibility="Collapsed" Grid.ColumnSpan="2"/>

+ 85
- 23
XHWK.WKTool/XHMicroLessonSystemWindow.xaml.cs View File

933
                             X = 0.1,
933
                             X = 0.1,
934
                             Y = 0.1
934
                             Y = 0.1
935
                         };
935
                         };
936
-                     
936
+                        APP.PageDrawList[APP.pageData.currpage - 1].Type = "截图";
937
 
937
 
938
                         APP.PageDrawList[APP.pageData.currpage - 1].IsImageLocation = false;
938
                         APP.PageDrawList[APP.pageData.currpage - 1].IsImageLocation = false;
939
                         imgCanvas.Source = bitImg;
939
                         imgCanvas.Source = bitImg;
1098
                             {
1098
                             {
1099
                             string[] page = images.ToArray();
1099
                             string[] page = images.ToArray();
1100
                                 int num = 0;
1100
                                 int num = 0;
1101
+
1102
+                                int iStart = APP.pageData.pagenum;//导入文档的开始下标
1103
+                                int iEnd= page.Length + APP.pageData.pagenum;//导入文档的结束下标
1101
                                 for (int i = 0 + APP.pageData.pagenum; i < page.Length + APP.pageData.pagenum; i++)//给画板模型加图片路径
1104
                                 for (int i = 0 + APP.pageData.pagenum; i < page.Length + APP.pageData.pagenum; i++)//给画板模型加图片路径
1102
                                 {
1105
                                 {
1103
                                     if (APP.PageDrawList != null && APP.PageDrawList.Count > i)
1106
                                     if (APP.PageDrawList != null && APP.PageDrawList.Count > i)
1106
                                         APP.PageDrawList[i].PdfImagePath = page[i - APP.pageData.pagenum];
1109
                                         APP.PageDrawList[i].PdfImagePath = page[i - APP.pageData.pagenum];
1107
                                         APP.PageDrawList[i].PageNum = i + 1;
1110
                                         APP.PageDrawList[i].PageNum = i + 1;
1108
                                         APP.PageDrawList[i].ImgDocumentation = true;
1111
                                         APP.PageDrawList[i].ImgDocumentation = true;
1112
+                                        APP.PageDrawList[i].Type = "ppt";
1109
                                     }
1113
                                     }
1110
                                     else
1114
                                     else
1111
                                     {
1115
                                     {
1112
-
1113
                                         Model_DrawData model_DrawData = new Model_DrawData
1116
                                         Model_DrawData model_DrawData = new Model_DrawData
1114
                                         {
1117
                                         {
1115
                                             PageImagePath = page[i - APP.pageData.pagenum],
1118
                                             PageImagePath = page[i - APP.pageData.pagenum],
1116
                                             PdfImagePath = page[i - APP.pageData.pagenum],
1119
                                             PdfImagePath = page[i - APP.pageData.pagenum],
1117
                                             PageNum = i + 1,
1120
                                             PageNum = i + 1,
1118
-                                            ImgDocumentation = true
1121
+                                            ImgDocumentation = true,
1122
+                                            Type = "ppt"
1119
                                         };
1123
                                         };
1120
                                         APP.PageDrawList.Add(model_DrawData);
1124
                                         APP.PageDrawList.Add(model_DrawData);
1121
                                     }
1125
                                     }
1132
                                     APP.pageData.pagenum += num;
1136
                                     APP.pageData.pagenum += num;
1133
                                     gridPage.Visibility = Visibility.Visible;//页码大于0 显示
1137
                                     gridPage.Visibility = Visibility.Visible;//页码大于0 显示
1134
                                 }
1138
                                 }
1135
-                                if (APP.pageData.currpage > 0 && APP.pageData.currpage < APP.PageDrawList.Count)
1139
+                                if (APP.pageData.currpage > 0 && APP.pageData.currpage <= APP.PageDrawList.Count)
1136
                                 {
1140
                                 {
1137
                                     imgCanvas.Source = null;
1141
                                     imgCanvas.Source = null;
1138
                                     ImgScreenshot.Visibility = Visibility.Collapsed;//当前页为导入时不可截图
1142
                                     ImgScreenshot.Visibility = Visibility.Collapsed;//当前页为导入时不可截图
1139
                                     ImgScreenshotTwo.Visibility = Visibility.Visible;
1143
                                     ImgScreenshotTwo.Visibility = Visibility.Visible;
1140
                                     btnScreenshot.IsEnabled = false;
1144
                                     btnScreenshot.IsEnabled = false;
1141
-                                    imgDocumentation.Source = new BitmapImage(new Uri(APP.PageDrawList[APP.pageData.currpage - 1].PageImagePath));//给当前页面展示图片
1145
+                                    imgDocumentation.Source = null;
1146
+                                    imgPPT.Source = new BitmapImage(new Uri(APP.PageDrawList[APP.pageData.currpage - 1].PageImagePath));
1147
+                                    for(int i=iStart;i<iEnd;i++)
1148
+                                    {
1149
+                                        APP.PageDrawList[i].ImageLocation = new TranslateTransform
1150
+                                        {
1151
+                                            X = 0.1,
1152
+                                            Y = 0.1
1153
+                                        };
1154
+
1155
+
1156
+                                        APP.PageDrawList[i].IsImageLocation = true;
1157
+                                        APP.PageDrawList[i].ImageSizes = new ScaleTransform
1158
+                                        {
1159
+                                            CenterX = imgCanvas.Width,
1160
+                                            CenterY = imgCanvas.Height
1161
+                                        };
1162
+                                    }
1142
                                 }
1163
                                 }
1143
                                 else
1164
                                 else
1144
                                 {
1165
                                 {
1145
                                     imgDocumentation.Source = null;
1166
                                     imgDocumentation.Source = null;
1146
                                     imgCanvas.Source = null;
1167
                                     imgCanvas.Source = null;
1168
+                                    imgPPT.Source = null;
1147
                                     ///截图可用
1169
                                     ///截图可用
1148
                                     ImgScreenshot.Visibility = Visibility.Visible;
1170
                                     ImgScreenshot.Visibility = Visibility.Visible;
1149
                                     ImgScreenshotTwo.Visibility = Visibility.Collapsed;
1171
                                     ImgScreenshotTwo.Visibility = Visibility.Collapsed;
1270
                                         APP.PageDrawList[i].PdfImagePath = page[i - APP.pageData.pagenum];
1292
                                         APP.PageDrawList[i].PdfImagePath = page[i - APP.pageData.pagenum];
1271
                                         APP.PageDrawList[i].PageNum = i + 1;
1293
                                         APP.PageDrawList[i].PageNum = i + 1;
1272
                                         APP.PageDrawList[i].ImgDocumentation = true;
1294
                                         APP.PageDrawList[i].ImgDocumentation = true;
1295
+                                        APP.PageDrawList[i].Type = "word";
1273
                                     }
1296
                                     }
1274
                                     else
1297
                                     else
1275
                                     {
1298
                                     {
1279
                                             PageImagePath = page[i - APP.pageData.pagenum],
1302
                                             PageImagePath = page[i - APP.pageData.pagenum],
1280
                                             PdfImagePath = page[i - APP.pageData.pagenum],
1303
                                             PdfImagePath = page[i - APP.pageData.pagenum],
1281
                                             PageNum = i + 1,
1304
                                             PageNum = i + 1,
1282
-                                            ImgDocumentation = true
1305
+                                            ImgDocumentation = true,
1306
+                                            Type = "word"
1283
                                         };
1307
                                         };
1284
                                         APP.PageDrawList.Add(model_DrawData);
1308
                                         APP.PageDrawList.Add(model_DrawData);
1285
                                     }
1309
                                     }
1295
                                     APP.pageData.pagenum += num;
1319
                                     APP.pageData.pagenum += num;
1296
                                     gridPage.Visibility = Visibility.Visible;//页码大于0 显示
1320
                                     gridPage.Visibility = Visibility.Visible;//页码大于0 显示
1297
                                 }
1321
                                 }
1298
-                                if (APP.pageData.currpage > 0 && APP.pageData.currpage < APP.PageDrawList.Count)
1322
+                                if (APP.pageData.currpage > 0 && APP.pageData.currpage <= APP.PageDrawList.Count)
1299
                                 {
1323
                                 {
1300
 
1324
 
1301
                                     imgCanvas.Source = null;
1325
                                     imgCanvas.Source = null;
1326
+                                    imgPPT.Source = null;
1302
                                     ImgScreenshot.Visibility = Visibility.Collapsed;//当前页为导入时不可截图
1327
                                     ImgScreenshot.Visibility = Visibility.Collapsed;//当前页为导入时不可截图
1303
                                     ImgScreenshotTwo.Visibility = Visibility.Visible;
1328
                                     ImgScreenshotTwo.Visibility = Visibility.Visible;
1304
                                     btnScreenshot.IsEnabled = false;
1329
                                     btnScreenshot.IsEnabled = false;
1309
                                 {
1334
                                 {
1310
                                     imgDocumentation.Source = null;
1335
                                     imgDocumentation.Source = null;
1311
                                     imgCanvas.Source = null;
1336
                                     imgCanvas.Source = null;
1337
+                                    imgPPT.Source = null;
1312
                                     ///截图可用
1338
                                     ///截图可用
1313
                                     ImgScreenshot.Visibility = Visibility.Visible;
1339
                                     ImgScreenshot.Visibility = Visibility.Visible;
1314
                                     ImgScreenshotTwo.Visibility = Visibility.Collapsed;
1340
                                     ImgScreenshotTwo.Visibility = Visibility.Collapsed;
3104
                     APP.PageDrawList.Clear();
3130
                     APP.PageDrawList.Clear();
3105
                     imgCanvas.Source = null;
3131
                     imgCanvas.Source = null;
3106
                     imgDocumentation.Source = null;
3132
                     imgDocumentation.Source = null;
3133
+                    imgPPT.Source = null;
3107
                     gridPage.Visibility = Visibility.Collapsed;
3134
                     gridPage.Visibility = Visibility.Collapsed;
3108
                     #endregion
3135
                     #endregion
3109
 
3136
 
3357
                 }
3384
                 }
3358
 
3385
 
3359
 
3386
 
3360
-                iTextSharp.text.Document document = new iTextSharp.text.Document(iTextSharp.text.PageSize.A4, 25, 25, 25, 25);
3387
+                iTextSharp.text.Document document = new iTextSharp.text.Document(iTextSharp.text.PageSize.A4, 0, 0, 0, 0);
3361
                 //iTextSharp.text.Rectangle page = new iTextSharp.text.Rectangle(iTextSharp.text.PageSize.A4., 250f);//cs
3388
                 //iTextSharp.text.Rectangle page = new iTextSharp.text.Rectangle(iTextSharp.text.PageSize.A4., 250f);//cs
3362
                 ////设置纸张横向
3389
                 ////设置纸张横向
3363
                 //document.SetPageSize(iTextSharp.text.PageSize.A4.Rotate());
3390
                 //document.SetPageSize(iTextSharp.text.PageSize.A4.Rotate());
3380
                     {
3407
                     {
3381
 
3408
 
3382
                     }
3409
                     }
3383
-                    else if (APP.PageDrawList[i].ImgDocumentation == true)
3410
+                    else if (APP.PageDrawList[i].ImgDocumentation == true&& !APP.PageDrawList[i].Type.Equals("ppt"))
3384
                     {
3411
                     {
3385
                         image = iTextSharp.text.Image.GetInstance(APP.PageDrawList[i].PageImagePath);
3412
                         image = iTextSharp.text.Image.GetInstance(APP.PageDrawList[i].PageImagePath);
3386
                     }
3413
                     }
3410
 
3437
 
3411
 
3438
 
3412
 
3439
 
3413
-                    if (image.Height > iTextSharp.text.PageSize.A4.Height - 25)
3440
+                    if (image.Height > iTextSharp.text.PageSize.A4.Height)
3414
                     {
3441
                     {
3415
-                        image.ScaleToFit(iTextSharp.text.PageSize.A4.Width - 25, iTextSharp.text.PageSize.A4.Height - 25);
3442
+                        image.ScaleToFit(iTextSharp.text.PageSize.A4.Width, iTextSharp.text.PageSize.A4.Height);
3416
                     }
3443
                     }
3417
-                    else if (image.Width > iTextSharp.text.PageSize.A4.Width - 25)
3444
+                    else if (image.Width > iTextSharp.text.PageSize.A4.Width)
3418
                     {
3445
                     {
3419
-                        image.ScaleToFit(iTextSharp.text.PageSize.A4.Width - 25, iTextSharp.text.PageSize.A4.Height - 25);
3446
+                        image.ScaleToFit(iTextSharp.text.PageSize.A4.Width, iTextSharp.text.PageSize.A4.Height);
3420
                     }
3447
                     }
3421
                     image.Alignment = iTextSharp.text.Image.ALIGN_MIDDLE;
3448
                     image.Alignment = iTextSharp.text.Image.ALIGN_MIDDLE;
3422
                     document.NewPage();
3449
                     document.NewPage();
3505
 
3532
 
3506
                         if (APP.PageDrawList[APP.pageData.currpage - 1].ImgDocumentation)
3533
                         if (APP.PageDrawList[APP.pageData.currpage - 1].ImgDocumentation)
3507
                         {
3534
                         {
3508
-                            imgCanvas.Source = null;
3509
-                            imgDocumentation.Source = new BitmapImage(new Uri(APP.PageDrawList[APP.pageData.currpage - 1].PageImagePath));
3510
-                            ImgScreenshot.Visibility = Visibility.Collapsed;//当前页为导入时不可截图
3511
-                            ImgScreenshotTwo.Visibility = Visibility.Visible;
3512
-                            btnScreenshot.IsEnabled = false;
3535
+                            if("ppt".Equals(APP.PageDrawList[APP.pageData.currpage - 1].Type))
3536
+                            {
3537
+                                imgCanvas.Source = null;
3538
+                                imgDocumentation.Source = null;
3539
+                                imgPPT.Source = new BitmapImage(new Uri(APP.PageDrawList[APP.pageData.currpage - 1].PageImagePath));
3540
+                                ImgScreenshot.Visibility = Visibility.Collapsed;//当前页为导入时不可截图
3541
+                                ImgScreenshotTwo.Visibility = Visibility.Visible;
3542
+                                btnScreenshot.IsEnabled = false;
3543
+                            }
3544
+                            else
3545
+                            {
3546
+                                imgPPT.Source = null;
3547
+                                imgCanvas.Source = null;
3548
+                                imgDocumentation.Source = new BitmapImage(new Uri(APP.PageDrawList[APP.pageData.currpage - 1].PageImagePath));
3549
+                                ImgScreenshot.Visibility = Visibility.Collapsed;//当前页为导入时不可截图
3550
+                                ImgScreenshotTwo.Visibility = Visibility.Visible;
3551
+                                btnScreenshot.IsEnabled = false;
3552
+                            }
3513
                         }
3553
                         }
3514
                         else
3554
                         else
3515
                         {
3555
                         {
3556
+                            imgPPT.Source = null;
3516
                             imgDocumentation.Source = null;
3557
                             imgDocumentation.Source = null;
3517
                             imgCanvas.Source = new BitmapImage(new Uri(APP.PageDrawList[APP.pageData.currpage - 1].PageImagePath));
3558
                             imgCanvas.Source = new BitmapImage(new Uri(APP.PageDrawList[APP.pageData.currpage - 1].PageImagePath));
3518
                             APP.PageDrawList[APP.pageData.currpage - 1].IsImageLocation = false;
3559
                             APP.PageDrawList[APP.pageData.currpage - 1].IsImageLocation = false;
3526
                     }
3567
                     }
3527
                     else
3568
                     else
3528
                     {
3569
                     {
3570
+                        imgPPT.Source = null;
3529
                         imgCanvas.Source = null;
3571
                         imgCanvas.Source = null;
3530
                         imgDocumentation.Source = null;
3572
                         imgDocumentation.Source = null;
3531
                     }
3573
                     }
3589
                     {
3631
                     {
3590
                         if (APP.PageDrawList[APP.pageData.currpage - 1].ImgDocumentation)
3632
                         if (APP.PageDrawList[APP.pageData.currpage - 1].ImgDocumentation)
3591
                         {
3633
                         {
3592
-                            imgCanvas.Source = null;
3593
-                            imgDocumentation.Source = new BitmapImage(new Uri(APP.PageDrawList[APP.pageData.currpage - 1].PageImagePath));
3594
-                            ImgScreenshot.Visibility = Visibility.Collapsed;//当前页为导入时不可截图
3595
-                            ImgScreenshotTwo.Visibility = Visibility.Visible;
3596
-                            btnScreenshot.IsEnabled = false;
3634
+                            if ("ppt".Equals(APP.PageDrawList[APP.pageData.currpage - 1].Type))
3635
+                            {
3636
+                                imgCanvas.Source = null;
3637
+                                imgDocumentation.Source = null;
3638
+                                imgPPT.Source = new BitmapImage(new Uri(APP.PageDrawList[APP.pageData.currpage - 1].PageImagePath));
3639
+                                ImgScreenshot.Visibility = Visibility.Collapsed;//当前页为导入时不可截图
3640
+                                ImgScreenshotTwo.Visibility = Visibility.Visible;
3641
+                                btnScreenshot.IsEnabled = false;
3642
+                            }
3643
+                            else
3644
+                            {
3645
+                                imgPPT.Source = null;
3646
+                                imgCanvas.Source = null;
3647
+                                imgDocumentation.Source = new BitmapImage(new Uri(APP.PageDrawList[APP.pageData.currpage - 1].PageImagePath));
3648
+                                ImgScreenshot.Visibility = Visibility.Collapsed;//当前页为导入时不可截图
3649
+                                ImgScreenshotTwo.Visibility = Visibility.Visible;
3650
+                                btnScreenshot.IsEnabled = false;
3651
+                            }
3652
+                            //imgCanvas.Source = null;
3653
+                            //imgDocumentation.Source = new BitmapImage(new Uri(APP.PageDrawList[APP.pageData.currpage - 1].PageImagePath));
3654
+                            //ImgScreenshot.Visibility = Visibility.Collapsed;//当前页为导入时不可截图
3655
+                            //ImgScreenshotTwo.Visibility = Visibility.Visible;
3656
+                            //btnScreenshot.IsEnabled = false;
3597
                         }
3657
                         }
3598
                         else
3658
                         else
3599
                         {
3659
                         {
3660
+                            imgPPT.Source = null;
3600
                             imgDocumentation.Source = null;
3661
                             imgDocumentation.Source = null;
3601
                             imgCanvas.Source = new BitmapImage(new Uri(APP.PageDrawList[APP.pageData.currpage - 1].PageImagePath));
3662
                             imgCanvas.Source = new BitmapImage(new Uri(APP.PageDrawList[APP.pageData.currpage - 1].PageImagePath));
3602
                             APP.PageDrawList[APP.pageData.currpage - 1].IsImageLocation = false;
3663
                             APP.PageDrawList[APP.pageData.currpage - 1].IsImageLocation = false;
3626
                     }
3687
                     }
3627
                     else
3688
                     else
3628
                     {
3689
                     {
3690
+                        imgPPT.Source = null;
3629
                         imgCanvas.Source = null;
3691
                         imgCanvas.Source = null;
3630
                         imgDocumentation.Source = null;
3692
                         imgDocumentation.Source = null;
3631
                     }
3693
                     }

Loading…
Cancel
Save