From 3766215964065f7b17ca87a738f10ccd19200eee Mon Sep 17 00:00:00 2001 From: Sunny Date: Sun, 19 Jun 2022 17:35:32 +0800 Subject: [PATCH] =?UTF-8?q?*=20UIDropDown:=20=E8=A7=A3=E5=86=B3=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E6=8E=A7=E4=BB=B6=E5=85=B3=E9=97=AD=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SunnyUI/Controls/UIColorPicker.cs | 1 + SunnyUI/Controls/UIComboBox.cs | 2 ++ SunnyUI/Controls/UIComboDataGridView.cs | 1 + SunnyUI/Controls/UIComboTreeView.cs | 1 + SunnyUI/Controls/UIDatePicker.cs | 2 ++ SunnyUI/Controls/UIDateTimePicker.cs | 2 ++ SunnyUI/Controls/UITimePicker.cs | 2 ++ 7 files changed, 11 insertions(+) diff --git a/SunnyUI/Controls/UIColorPicker.cs b/SunnyUI/Controls/UIColorPicker.cs index ddae45f9..2b25761d 100644 --- a/SunnyUI/Controls/UIColorPicker.cs +++ b/SunnyUI/Controls/UIColorPicker.cs @@ -60,6 +60,7 @@ namespace Sunny.UI { InitializeComponent(); Value = UIColor.Blue; + CreateInstance(); } private void UIColorPicker_ButtonClick(object sender, EventArgs e) diff --git a/SunnyUI/Controls/UIComboBox.cs b/SunnyUI/Controls/UIComboBox.cs index 5ee6ce7b..c14883ce 100644 --- a/SunnyUI/Controls/UIComboBox.cs +++ b/SunnyUI/Controls/UIComboBox.cs @@ -61,6 +61,8 @@ namespace Sunny.UI edit.KeyDown += Edit_KeyDown; DropDownWidth = 150; fullControlSelect = true; + + CreateInstance(); } private void ListBox_Click(object sender, EventArgs e) diff --git a/SunnyUI/Controls/UIComboDataGridView.cs b/SunnyUI/Controls/UIComboDataGridView.cs index 49468fc2..549d9f9d 100644 --- a/SunnyUI/Controls/UIComboDataGridView.cs +++ b/SunnyUI/Controls/UIComboDataGridView.cs @@ -79,6 +79,7 @@ namespace Sunny.UI { InitializeComponent(); fullControlSelect = true; + CreateInstance(); } public Control ExToolTipControl() diff --git a/SunnyUI/Controls/UIComboTreeView.cs b/SunnyUI/Controls/UIComboTreeView.cs index 61e141c7..121fcc1e 100644 --- a/SunnyUI/Controls/UIComboTreeView.cs +++ b/SunnyUI/Controls/UIComboTreeView.cs @@ -39,6 +39,7 @@ namespace Sunny.UI { InitializeComponent(); fullControlSelect = true; + CreateInstance(); } private void InitializeComponent() diff --git a/SunnyUI/Controls/UIDatePicker.cs b/SunnyUI/Controls/UIDatePicker.cs index 805ca9c4..7548010a 100644 --- a/SunnyUI/Controls/UIDatePicker.cs +++ b/SunnyUI/Controls/UIDatePicker.cs @@ -42,6 +42,8 @@ namespace Sunny.UI MaxLength = 10; EditorLostFocus += UIDatePicker_LostFocus; TextChanged += UIDatePicker_TextChanged; + + CreateInstance(); } [DefaultValue(false)] diff --git a/SunnyUI/Controls/UIDateTimePicker.cs b/SunnyUI/Controls/UIDateTimePicker.cs index 57b0a4e8..cb1fdf85 100644 --- a/SunnyUI/Controls/UIDateTimePicker.cs +++ b/SunnyUI/Controls/UIDateTimePicker.cs @@ -72,6 +72,8 @@ namespace Sunny.UI EditorLostFocus += UIDatePicker_LostFocus; TextChanged += UIDatePicker_TextChanged; MaxLength = 19; + + CreateInstance(); } private void UIDatePicker_TextChanged(object sender, EventArgs e) diff --git a/SunnyUI/Controls/UITimePicker.cs b/SunnyUI/Controls/UITimePicker.cs index 8e0fb61e..2ca8483c 100644 --- a/SunnyUI/Controls/UITimePicker.cs +++ b/SunnyUI/Controls/UITimePicker.cs @@ -60,6 +60,8 @@ namespace Sunny.UI EditorLostFocus += UIDatePicker_LostFocus; TextChanged += UIDatePicker_TextChanged; MaxLength = 8; + + CreateInstance(); } [DefaultValue(false)]