From 52a7bd18db9da8f102e25aef672bbf86d4320d7c Mon Sep 17 00:00:00 2001 From: lhiven Date: Wed, 13 Nov 2024 15:18:19 +0800 Subject: [PATCH] =?UTF-8?q?RsTray=E6=8E=A7=E4=BB=B6load=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E4=B8=AD=E5=8A=A0=E5=85=A5updateslotpos=E7=9A=84=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rs.Controls/RsTray.Designer.cs | 1 + Rs.Controls/RsTray.cs | 5 +++++ Rs.Controls/RsTray.resx | 8 ++++---- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Rs.Controls/RsTray.Designer.cs b/Rs.Controls/RsTray.Designer.cs index 0bb8a3b..dfac127 100644 --- a/Rs.Controls/RsTray.Designer.cs +++ b/Rs.Controls/RsTray.Designer.cs @@ -120,6 +120,7 @@ this.Controls.Add(this.panel2); this.Controls.Add(this.panel1); this.Name = "RsTray"; + this.Load += new System.EventHandler(this.RsTray_Load); this.panel1.ResumeLayout(false); this.tableLayoutPanel1.ResumeLayout(false); this.contextMenuStrip1.ResumeLayout(false); diff --git a/Rs.Controls/RsTray.cs b/Rs.Controls/RsTray.cs index d3013ac..0b323bf 100644 --- a/Rs.Controls/RsTray.cs +++ b/Rs.Controls/RsTray.cs @@ -646,6 +646,11 @@ namespace Rs.Controls } DrawTrayAfterEvent?.Invoke(this, ESlotStatus.NotHave,slots); } + + private void RsTray_Load(object sender, EventArgs e) + { + UpdateSlotPos(); + } } /// diff --git a/Rs.Controls/RsTray.resx b/Rs.Controls/RsTray.resx index 78ff28c..c84dc8b 100644 --- a/Rs.Controls/RsTray.resx +++ b/Rs.Controls/RsTray.resx @@ -265,25 +265,25 @@ 17, 17 - 180, 22 + 134, 22 Set empty - 180, 22 + 134, 22 Set filled - 180, 22 + 134, 22 Disable - 181, 92 + 135, 70 contextMenuStrip1