|
@@ -1395,14 +1395,15 @@ namespace XHWK.WKTool
|
1395
|
1395
|
APP.ImgPath = filepath;
|
1396
|
1396
|
Dispatcher.Invoke(new Action(() =>
|
1397
|
1397
|
{
|
1398
|
|
- if (APP.pageData.currpage == 0)
|
|
1398
|
+
|
|
1399
|
+ if (APP.pageData.currpage == 0)
|
1399
|
1400
|
{
|
1400
|
|
- APP.pageData.pagenum += 1;
|
1401
|
|
- APP.pageData.currpage = APP.pageData.pagenum;
|
1402
|
|
- myblackboard.changepage(APP.pageData.currpage - 1);
|
1403
|
|
-
|
|
1401
|
+ APP.pageData.pagenum += 1;
|
|
1402
|
+ APP.pageData.currpage = APP.pageData.pagenum;
|
|
1403
|
+ myblackboard.changepage(APP.pageData.currpage - 1);
|
|
1404
|
+
|
|
1405
|
+
|
1404
|
1406
|
|
1405
|
|
-
|
1406
|
1407
|
gridPage.Visibility = Visibility.Visible;//页码大于0 显示
|
1407
|
1408
|
#region 插入页码
|
1408
|
1409
|
PageData = new List<PageData>();
|
|
@@ -1416,11 +1417,14 @@ namespace XHWK.WKTool
|
1416
|
1417
|
CbxPageList.ItemsSource = PageData;
|
1417
|
1418
|
CbxPageList.SelectedIndex = APP.pageData.currpage - 1;
|
1418
|
1419
|
#endregion
|
1419
|
|
-
|
1420
|
|
-
|
1421
|
|
-
|
1422
|
|
-
|
1423
|
1420
|
}
|
|
1421
|
+ else
|
|
1422
|
+ {
|
|
1423
|
+ APP.pageData.pagenum += 1;
|
|
1424
|
+ APP.pageData.currpage = APP.pageData.pagenum;
|
|
1425
|
+ myblackboard.changepage(APP.pageData.currpage - 1);
|
|
1426
|
+ }
|
|
1427
|
+
|
1424
|
1428
|
if (APP.PageDrawList.Count >= APP.pageData.currpage)
|
1425
|
1429
|
{
|
1426
|
1430
|
APP.PageDrawList[APP.pageData.currpage - 1].PageImagePath = APP.ImgPath;//zxycs
|