|
@@ -163,6 +163,9 @@ namespace XHWK.WKTool
|
163
|
163
|
times.Enabled = true; //启动计时器
|
164
|
164
|
|
165
|
165
|
IsRbnOpen = true;
|
|
166
|
+
|
|
167
|
+ string imgPath = FileToolsCommon.GetFileAbsolutePath("Temp/imgplayer");
|
|
168
|
+ FileToolsCommon.CreateDirectory(imgPath);
|
166
|
169
|
}
|
167
|
170
|
}
|
168
|
171
|
|
|
@@ -178,8 +181,7 @@ namespace XHWK.WKTool
|
178
|
181
|
if (I > 10010)
|
179
|
182
|
{
|
180
|
183
|
long time = Timestamp();
|
181
|
|
- string imgPath= FileToolsCommon.GetFileAbsolutePath("temp/imgplayer");
|
182
|
|
- FileToolsCommon.CreateFile(imgPath);
|
|
184
|
+ string imgPath= FileToolsCommon.GetFileAbsolutePath("Temp/imgplayer");
|
183
|
185
|
//string FilePathName = ImgPath + RsImgName.Count + ".png";
|
184
|
186
|
string path = CameraHelper.CaptureImage(imgPath, time.ToString());
|
185
|
187
|
if (!string.IsNullOrWhiteSpace(path))
|
|
@@ -1472,7 +1474,7 @@ namespace XHWK.WKTool
|
1472
|
1474
|
APP.pageData.currpage -= 1;
|
1473
|
1475
|
|
1474
|
1476
|
myblackboard.changepage(APP.pageData.currpage - 1);
|
1475
|
|
- if (APP.PageDrawList.Count > 0)
|
|
1477
|
+ if (APP.pageData.currpage <= APP.PageDrawList.Count)
|
1476
|
1478
|
{
|
1477
|
1479
|
if (APP.PageDrawList[APP.pageData.currpage - 1].ImageLocation != null)
|
1478
|
1480
|
{
|
|
@@ -1539,7 +1541,7 @@ namespace XHWK.WKTool
|
1539
|
1541
|
}
|
1540
|
1542
|
APP.pageData.currpage += 1;
|
1541
|
1543
|
myblackboard.changepage(APP.pageData.currpage - 1);
|
1542
|
|
- if (APP.PageDrawList.Count > 0)
|
|
1544
|
+ if (APP.pageData.currpage <= APP.PageDrawList.Count)
|
1543
|
1545
|
{
|
1544
|
1546
|
|
1545
|
1547
|
if (APP.PageDrawList[APP.pageData.currpage - 1].ImageLocation != null)
|