From f1a4349ec1420828a02e2fd28b02afb8519c1929 Mon Sep 17 00:00:00 2001
From: wells.liu <wells.liu@broconcentric.com>
Date: 星期四, 09 七月 2020 18:53:15 +0800
Subject: [PATCH] jog操作
---
src/Bro.M071.Process/UI/M071_MainForm.cs | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/Bro.M071.Process/UI/M071_MainForm.cs b/src/Bro.M071.Process/UI/M071_MainForm.cs
index 37bcccb..df918c4 100644
--- a/src/Bro.M071.Process/UI/M071_MainForm.cs
+++ b/src/Bro.M071.Process/UI/M071_MainForm.cs
@@ -33,10 +33,12 @@
tscEditLocation.Visible = tsmiShowEditor.Checked = false;
- this.Load += (s, e) =>
- {
- cvImage.SetScreenSize();
- };
+ this.Load += async (s, e) =>
+ {
+ await Task.Delay(300);
+
+ cvImage.SetScreenSize();
+ };
}
public override void OnProcessUpdated()
@@ -52,7 +54,7 @@
try
{
Bitmap image = (Bitmap)Image.FromFile(Config.BackgroundImagePath);
- cvImage.LoadImage(image);
+ cvImage.LoadImage(image);
cvImage.SetScreenSize();
}
catch (Exception ex)
--
Gitblit v1.8.0