Browse Source

* 重构多语翻译类

pull/95/head
Sunny 11 months ago
parent
commit
2c24db60d9
  1. 3
      SunnyUI/Controls/UIColorPicker.cs
  2. 3
      SunnyUI/Controls/UIComboBox.cs
  3. 3
      SunnyUI/Controls/UIComboDataGridView.cs
  4. 3
      SunnyUI/Controls/UIComboTreeView.cs
  5. 3
      SunnyUI/Controls/UIDatePicker.cs
  6. 3
      SunnyUI/Controls/UIDateTimePicker.cs
  7. 3
      SunnyUI/Controls/UINumPadTextBox.cs
  8. 3
      SunnyUI/Controls/UITimePicker.cs

3
SunnyUI/Controls/UIColorPicker.cs

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

3
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
{

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

3
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

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

3
SunnyUI/Controls/UIDateTimePicker.cs

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

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

3
SunnyUI/Controls/UITimePicker.cs

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

Loading…
Cancel
Save