From 6ade04c8f6e703a2b9c0d79478a5068f5a0c6327 Mon Sep 17 00:00:00 2001 From: wells.liu <wells.liu@broconcentric.com> Date: 星期五, 10 七月 2020 12:55:23 +0800 Subject: [PATCH] 新产品 配置窗口 --- 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