------ #### RaUIV4 V4.0.2311.0701 - *.[全新]整合了MyDb、ryControls、MyDb_MySQL等dll文件到RaUI一个项目。 - *.[新增]新增ApkOp类,可以轻松获取APK信息。 - *.[新增]新增JsonExt扩展类,让Json操作更简单。 - *.[新增]新增WebP类,可以支持webp格式的图片。 - *.[改进]ryQuickSQL中的AddField方法改为自动替换已存在的同名值。 - *.[修复]ryQuickSQL中的AddFieldCalc方法无法正常计算的BUG。
47 lines
1.2 KiB
C#
47 lines
1.2 KiB
C#
using System;
|
|
using System.ComponentModel;
|
|
|
|
namespace WeifenLuo.WinFormsUI.Docking
|
|
{
|
|
[AttributeUsage(AttributeTargets.All)]
|
|
internal sealed class LocalizedDescriptionAttribute : DescriptionAttribute
|
|
{
|
|
private bool m_initialized = false;
|
|
|
|
public LocalizedDescriptionAttribute(string key) : base(key)
|
|
{
|
|
}
|
|
|
|
public override string Description
|
|
{
|
|
get
|
|
{
|
|
if (!m_initialized)
|
|
{
|
|
string key = base.Description;
|
|
DescriptionValue = ResourceHelper.GetString(key);
|
|
if (DescriptionValue == null)
|
|
DescriptionValue = String.Empty;
|
|
|
|
m_initialized = true;
|
|
}
|
|
|
|
return DescriptionValue;
|
|
}
|
|
}
|
|
}
|
|
|
|
[AttributeUsage(AttributeTargets.All)]
|
|
internal sealed class LocalizedCategoryAttribute : CategoryAttribute
|
|
{
|
|
public LocalizedCategoryAttribute(string key) : base(key)
|
|
{
|
|
}
|
|
|
|
protected override string GetLocalizedString(string value)
|
|
{
|
|
return ResourceHelper.GetString(value);
|
|
}
|
|
}
|
|
}
|