Procházet zdrojové kódy

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

tags/录制修改前
耀 před 4 roky
rodič
revize
ae2773d55d

+ 3
- 3
XHWK.WKTool/XHMicroLessonSystemWindow.xaml Zobrazit soubor

@@ -634,10 +634,10 @@
634 634
                 </StackPanel>
635 635
                 <!--页码-->
636 636
                 <Grid Grid.Row="1" x:Name="gridPage" Visibility="Collapsed" MouseLeftButtonDown="Window_MouseLeftButtonDown_1" HorizontalAlignment="Center">
637
-                    <StackPanel Grid.Row="0" Orientation="Horizontal" Background="Transparent" Width="180" HorizontalAlignment="Center" Height="30" Margin="0,0,0,0" Grid.Column="1" VerticalAlignment="Bottom">
637
+                    <StackPanel Grid.Row="0" Orientation="Horizontal" Background="Transparent" Width="120" HorizontalAlignment="Center" Height="30" Margin="0,0,0,0" Grid.Column="1" VerticalAlignment="Bottom">
638 638
                         <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
639 639
                     x:Name="last_button"
640
-                    Width="60" Height="20"
640
+                    Width="28" Height="20"
641 641
                     Click="last_button_Click">
642 642
 
643 643
                             <Button.Content>
@@ -661,7 +661,7 @@
661 661
                         </Grid>
662 662
                         <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
663 663
                     x:Name="next_btn"  Background="Transparent"
664
-                    Width="60" Height="20"
664
+                    Width="28" Height="20"
665 665
                     Click="next_btn_Click">
666 666
                             <Button.Content>
667 667
                                 <StackPanel>

+ 9
- 20
XHWK.WKTool/XHMicroLessonSystemWindow.xaml.cs Zobrazit soubor

@@ -1340,7 +1340,7 @@ namespace XHWK.WKTool
1340 1340
                                         APP.PageDrawList[i].PdfImagePath = page[i - APP.pageData.pagenum];
1341 1341
                                         APP.PageDrawList[i].PageNum = i + 1;
1342 1342
                                         APP.PageDrawList[i].ImgDocumentation = true;
1343
-                                        APP.PageDrawList[i].Type = "ppt";
1343
+                                        APP.PageDrawList[i].Type = "word";
1344 1344
                                     }
1345 1345
                                     else
1346 1346
                                     {
@@ -1351,7 +1351,7 @@ namespace XHWK.WKTool
1351 1351
                                             PdfImagePath = page[i - APP.pageData.pagenum],
1352 1352
                                             PageNum = i + 1,
1353 1353
                                             ImgDocumentation = true,
1354
-                                            Type = "ppt"
1354
+                                            Type = "word"
1355 1355
                                         };
1356 1356
                                         APP.PageDrawList.Add(model_DrawData);
1357 1357
                                     }
@@ -1370,27 +1370,15 @@ namespace XHWK.WKTool
1370 1370
                                 }
1371 1371
                                 if (APP.pageData.currpage > 0 && APP.pageData.currpage <= APP.PageDrawList.Count)
1372 1372
                                 {
1373
+
1373 1374
                                     imgCanvas.Source = null;
1375
+                                    imgPPT.Source = null;
1374 1376
                                     ImgScreenshot.Visibility = Visibility.Collapsed;//当前页为导入时不可截图
1375 1377
                                     ImgScreenshotTwo.Visibility = Visibility.Visible;
1376 1378
                                     btnScreenshot.IsEnabled = false;
1377
-                                    imgDocumentation.Source = null;
1378
-                                    imgPPT.Source = new BitmapImage(new Uri(APP.PageDrawList[APP.pageData.currpage - 1].PageImagePath));//给当前页面展示图片
1379
+                                    imgDocumentation.Visibility = Visibility.Visible;
1380
+                                    imgDocumentation.Source = new BitmapImage(new Uri(APP.PageDrawList[APP.pageData.currpage - 1].PageImagePath));//给当前页面展示图片
1379 1381
                                     scroMain.ScrollToVerticalOffset(0);
1380
-                                    for (int i = iStart; i < iEnd; i++)
1381
-                                    {
1382
-                                        APP.PageDrawList[i].ImageLocation = new TranslateTransform
1383
-                                        {
1384
-                                            X = 0.1,
1385
-                                            Y = 0.1
1386
-                                        };
1387
-                                        APP.PageDrawList[i].IsImageLocation = true;
1388
-                                        APP.PageDrawList[i].ImageSizes = new ScaleTransform
1389
-                                        {
1390
-                                            CenterX = imgCanvas.Width,
1391
-                                            CenterY = imgCanvas.Height
1392
-                                        };
1393
-                                    }
1394 1382
                                 }
1395 1383
                                 else
1396 1384
                                 {
@@ -3490,6 +3478,7 @@ namespace XHWK.WKTool
3490 3478
                 MessageBoxResult dr = MessageWindow.Show("确定退出登陆?", "提示", MessageBoxButton.OKCancel);
3491 3479
                 if (dr == MessageBoxResult.OK)
3492 3480
                 {
3481
+                    LoginType();
3493 3482
                     Login();
3494 3483
                 }
3495 3484
             }
@@ -3536,8 +3525,8 @@ namespace XHWK.WKTool
3536 3525
             APP.IsLoginType = false;
3537 3526
             txbLoginType.Text = "未登录";
3538 3527
             APP.UserInfo = new Model_UserInfo();
3539
-            ImgUpload.Visibility = Visibility.Collapsed;
3540
-            ImgUploadTwo.Visibility = Visibility.Visible;
3528
+            //ImgUpload.Visibility = Visibility.Collapsed;
3529
+            //ImgUploadTwo.Visibility = Visibility.Visible;
3541 3530
         }
3542 3531
         /// <summary>
3543 3532
         /// 获取时间戳

Načítá se…
Zrušit
Uložit