|
@@ -1259,11 +1259,7 @@ namespace XHWK.WKTool
|
1259
|
1259
|
|
1260
|
1260
|
public void WindowType()
|
1261
|
1261
|
{
|
1262
|
|
- if (WindowState == WindowState.Minimized)//截图完恢复窗口
|
1263
|
|
- {
|
1264
|
|
- Topmost = true;
|
1265
|
|
- WindowState = WindowState.Normal;
|
1266
|
|
- }
|
|
1262
|
+ this.Activate();
|
1267
|
1263
|
}
|
1268
|
1264
|
|
1269
|
1265
|
/// <summary>
|
|
@@ -1277,8 +1273,8 @@ namespace XHWK.WKTool
|
1277
|
1273
|
{
|
1278
|
1274
|
if (WindowState == WindowState.Minimized)//截图完恢复窗口
|
1279
|
1275
|
{
|
1280
|
|
- Topmost = true;
|
1281
|
1276
|
WindowState = WindowState.Normal;
|
|
1277
|
+ Activate();
|
1282
|
1278
|
}
|
1283
|
1279
|
InitializeKeyDownEvent();
|
1284
|
1280
|
if (!string.IsNullOrWhiteSpace(APP.ImgPath) && File.Exists(APP.ImgPath))
|
|
@@ -1344,13 +1340,11 @@ namespace XHWK.WKTool
|
1344
|
1340
|
BtnPrint.IsEnabled = true;
|
1345
|
1341
|
}
|
1346
|
1342
|
}
|
1347
|
|
- Topmost = false;
|
1348
|
1343
|
}
|
1349
|
1344
|
else if ("取消".Equals(text))
|
1350
|
1345
|
{
|
1351
|
1346
|
if (WindowState == WindowState.Minimized)//截图完恢复窗口
|
1352
|
1347
|
{
|
1353
|
|
- Topmost = true;
|
1354
|
1348
|
WindowState = WindowState.Normal;
|
1355
|
1349
|
}
|
1356
|
1350
|
}
|