From e6978f4a696586f2244154cd7e87494863465ffc Mon Sep 17 00:00:00 2001 From: Sunny Date: Mon, 5 Sep 2022 21:45:22 +0800 Subject: [PATCH] =?UTF-8?q?*=20UIListBox:=20=E4=BF=AE=E5=A4=8DClick?= =?UTF-8?q?=EF=BC=8CDoubleClick=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SunnyUI/Controls/DropItem/UIComboBoxItem.Designer.cs | 2 +- SunnyUI/Controls/UIEdit.cs | 2 +- SunnyUI/Controls/UITransfer.Designer.cs | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/SunnyUI/Controls/DropItem/UIComboBoxItem.Designer.cs b/SunnyUI/Controls/DropItem/UIComboBoxItem.Designer.cs index d4b571ba..9acd0262 100644 --- a/SunnyUI/Controls/DropItem/UIComboBoxItem.Designer.cs +++ b/SunnyUI/Controls/DropItem/UIComboBoxItem.Designer.cs @@ -48,7 +48,7 @@ this.listBox.Size = new System.Drawing.Size(184, 210); this.listBox.TabIndex = 3; this.listBox.Text = null; - this.listBox.ItemClick += new System.EventHandler(this.ListBox_Click); + this.listBox.Click += new System.EventHandler(this.ListBox_Click); this.listBox.SelectedIndexChanged += new System.EventHandler(this.listBox_SelectedIndexChanged); this.listBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.listBox_KeyDown); // diff --git a/SunnyUI/Controls/UIEdit.cs b/SunnyUI/Controls/UIEdit.cs index e3dbf872..3ce8ebf7 100644 --- a/SunnyUI/Controls/UIEdit.cs +++ b/SunnyUI/Controls/UIEdit.cs @@ -78,7 +78,7 @@ namespace Sunny.UI private void waterMarkContainer_Paint(object sender, PaintEventArgs e) { waterMarkContainer.Visible = Watermark.IsValid(); - waterMarkContainer.Location = new Point(2, 0); + waterMarkContainer.Location = new Point(3, 0); waterMarkContainer.Height = this.Height; waterMarkContainer.Width = this.Width; waterMarkContainer.Anchor = AnchorStyles.Left | AnchorStyles.Right; diff --git a/SunnyUI/Controls/UITransfer.Designer.cs b/SunnyUI/Controls/UITransfer.Designer.cs index 15cc4136..abce83d0 100644 --- a/SunnyUI/Controls/UITransfer.Designer.cs +++ b/SunnyUI/Controls/UITransfer.Designer.cs @@ -118,8 +118,8 @@ namespace Sunny.UI this.l1.Size = new System.Drawing.Size(210, 348); this.l1.TabIndex = 7; this.l1.Text = null; - this.l1.ItemClick += new System.EventHandler(this.l1_ItemClick); - this.l1.ItemDoubleClick += new System.EventHandler(this.l1_DoubleClick); + this.l1.Click += new System.EventHandler(this.l1_ItemClick); + this.l1.DoubleClick += new System.EventHandler(this.l1_DoubleClick); // // l2 // @@ -137,8 +137,8 @@ namespace Sunny.UI this.l2.Size = new System.Drawing.Size(210, 348); this.l2.TabIndex = 8; this.l2.Text = null; - this.l2.ItemClick += new System.EventHandler(this.l2_ItemClick); - this.l2.ItemDoubleClick += new System.EventHandler(this.l2_DoubleClick); + this.l2.Click += new System.EventHandler(this.l2_ItemClick); + this.l2.DoubleClick += new System.EventHandler(this.l2_DoubleClick); // // UITransfer //