From 2c24db60d902abe3cc9806f43a78ff041d48c65d Mon Sep 17 00:00:00 2001 From: Sunny Date: Mon, 16 Sep 2024 21:54:35 +0800 Subject: [PATCH] =?UTF-8?q?*=20=E9=87=8D=E6=9E=84=E5=A4=9A=E8=AF=AD?= =?UTF-8?q?=E7=BF=BB=E8=AF=91=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SunnyUI/Controls/UIColorPicker.cs | 3 +++ SunnyUI/Controls/UIComboBox.cs | 3 +++ SunnyUI/Controls/UIComboDataGridView.cs | 3 +++ SunnyUI/Controls/UIComboTreeView.cs | 3 +++ SunnyUI/Controls/UIDatePicker.cs | 3 +++ SunnyUI/Controls/UIDateTimePicker.cs | 3 +++ SunnyUI/Controls/UINumPadTextBox.cs | 3 +++ SunnyUI/Controls/UITimePicker.cs | 3 +++ 8 files changed, 24 insertions(+) diff --git a/SunnyUI/Controls/UIColorPicker.cs b/SunnyUI/Controls/UIColorPicker.cs index 19db1e8d..4f4bc880 100644 --- a/SunnyUI/Controls/UIColorPicker.cs +++ b/SunnyUI/Controls/UIColorPicker.cs @@ -76,6 +76,9 @@ namespace Sunny.UI base.Dispose(disposing); } + [Browsable(false)] + public override string[] FormTranslatorProperties { get; } + /// /// 颜色改变事件 /// diff --git a/SunnyUI/Controls/UIComboBox.cs b/SunnyUI/Controls/UIComboBox.cs index 9ac09dc0..1f997564 100644 --- a/SunnyUI/Controls/UIComboBox.cs +++ b/SunnyUI/Controls/UIComboBox.cs @@ -82,6 +82,9 @@ namespace Sunny.UI CreateInstance(); } + [Browsable(false)] + public override string[] FormTranslatorProperties { get; } + [DefaultValue(0), Category("SunnyUI"), Description("垂直滚动条宽度,最小为原生滚动条宽度")] public int ScrollBarWidth { diff --git a/SunnyUI/Controls/UIComboDataGridView.cs b/SunnyUI/Controls/UIComboDataGridView.cs index 562c5b8b..8e9c97d1 100644 --- a/SunnyUI/Controls/UIComboDataGridView.cs +++ b/SunnyUI/Controls/UIComboDataGridView.cs @@ -78,6 +78,9 @@ namespace Sunny.UI base.Dispose(disposing); } + [Browsable(false)] + public override string[] FormTranslatorProperties { get; } + [DefaultValue(true), Description("过滤框输入逐一过滤"), Category("SunnyUI")] public bool Filter1by1 { get; set; } = true; diff --git a/SunnyUI/Controls/UIComboTreeView.cs b/SunnyUI/Controls/UIComboTreeView.cs index fb39cdc1..22a6a49c 100644 --- a/SunnyUI/Controls/UIComboTreeView.cs +++ b/SunnyUI/Controls/UIComboTreeView.cs @@ -85,6 +85,9 @@ namespace Sunny.UI base.Dispose(disposing); } + [Browsable(false)] + public override string[] FormTranslatorProperties { get; } + [DefaultValue(false)] [Description("显示清除按钮"), Category("SunnyUI")] public bool ShowClearButton diff --git a/SunnyUI/Controls/UIDatePicker.cs b/SunnyUI/Controls/UIDatePicker.cs index 29265535..761b4448 100644 --- a/SunnyUI/Controls/UIDatePicker.cs +++ b/SunnyUI/Controls/UIDatePicker.cs @@ -57,6 +57,9 @@ namespace Sunny.UI private DateTime max = DateTime.MaxValue; private DateTime min = DateTime.MinValue; + [Browsable(false)] + public override string[] FormTranslatorProperties { get; } + static internal DateTime EffectiveMaxDate(DateTime maxDate) { DateTime maxSupportedDate = DateTimePicker.MaximumDateTime; diff --git a/SunnyUI/Controls/UIDateTimePicker.cs b/SunnyUI/Controls/UIDateTimePicker.cs index 8f80db9f..ed5a4a8c 100644 --- a/SunnyUI/Controls/UIDateTimePicker.cs +++ b/SunnyUI/Controls/UIDateTimePicker.cs @@ -55,6 +55,9 @@ namespace Sunny.UI } + [Browsable(false)] + public override string[] FormTranslatorProperties { get; } + /// /// 必需的设计器变量。 /// diff --git a/SunnyUI/Controls/UINumPadTextBox.cs b/SunnyUI/Controls/UINumPadTextBox.cs index e206099e..e7c252b7 100644 --- a/SunnyUI/Controls/UINumPadTextBox.cs +++ b/SunnyUI/Controls/UINumPadTextBox.cs @@ -43,6 +43,9 @@ namespace Sunny.UI fullControlSelect = true; } + [Browsable(false)] + public override string[] FormTranslatorProperties { get; } + public delegate void OnValueChanged(object sender, string value); public event OnValueChanged ValueChanged; private NumPadType numPadType = NumPadType.Text; diff --git a/SunnyUI/Controls/UITimePicker.cs b/SunnyUI/Controls/UITimePicker.cs index 37b1c33d..091b0481 100644 --- a/SunnyUI/Controls/UITimePicker.cs +++ b/SunnyUI/Controls/UITimePicker.cs @@ -49,6 +49,9 @@ namespace Sunny.UI this.PerformLayout(); } + [Browsable(false)] + public override string[] FormTranslatorProperties { get; } + /// /// 必需的设计器变量。 ///