From 9b5a866d16ca2b7a68d3af5bac8ea29c4626902f Mon Sep 17 00:00:00 2001
From: xcd <834800634@qq.com>
Date: 星期三, 08 七月 2020 18:06:32 +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