* 重构多语翻译类

This commit is contained in:
Sunny 2024-09-16 21:54:35 +08:00
parent 1ccaaad57c
commit 2c24db60d9
8 changed files with 24 additions and 0 deletions

View File

@ -76,6 +76,9 @@ namespace Sunny.UI
base.Dispose(disposing);
}
[Browsable(false)]
public override string[] FormTranslatorProperties { get; }
/// <summary>
/// 颜色改变事件
/// </summary>

View File

@ -82,6 +82,9 @@ namespace Sunny.UI
CreateInstance();
}
[Browsable(false)]
public override string[] FormTranslatorProperties { get; }
[DefaultValue(0), Category("SunnyUI"), Description("垂直滚动条宽度,最小为原生滚动条宽度")]
public int ScrollBarWidth
{

View File

@ -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;

View File

@ -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

View File

@ -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;

View File

@ -55,6 +55,9 @@ namespace Sunny.UI
}
[Browsable(false)]
public override string[] FormTranslatorProperties { get; }
/// <summary>
/// 必需的设计器变量。
/// </summary>

View File

@ -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;

View File

@ -49,6 +49,9 @@ namespace Sunny.UI
this.PerformLayout();
}
[Browsable(false)]
public override string[] FormTranslatorProperties { get; }
/// <summary>
/// 必需的设计器变量。
/// </summary>