VPet.Solution 修复bug

This commit is contained in:
Hakoyu 2024-01-13 22:23:34 +08:00
parent 83d902e635
commit e9f00b2f7a
2 changed files with 3 additions and 6 deletions
VPet.Solution
Utils
ViewModels/SettingEditor

View File

@ -92,7 +92,7 @@ public static class ReflectionUtils
continue; continue;
} }
if ( if (
property.IsDefined(typeof(ReflectionPropertyIgnoreAttribute)) property.IsDefined(typeof(ReflectionPropertyAttribute))
&& property.IsDefined(typeof(ReflectionPropertyConverterAttribute)) is false && property.IsDefined(typeof(ReflectionPropertyConverterAttribute)) is false
) )
continue; continue;
@ -229,10 +229,7 @@ public class ReflectionPropertyConverterAttribute : Attribute
/// 反射属性忽视 /// 反射属性忽视
/// </summary> /// </summary>
[AttributeUsage(AttributeTargets.Property)] [AttributeUsage(AttributeTargets.Property)]
public class ReflectionPropertyIgnoreAttribute : Attribute public class ReflectionPropertyIgnoreAttribute : Attribute { }
{
public ReflectionPropertyIgnoreAttribute() { }
}
/// <summary> /// <summary>
/// 反射设置 /// 反射设置

View File

@ -173,7 +173,7 @@ public class SettingWindowVM : ObservableClass<SettingWindowVM>
{ {
if ( if (
MessageBox.Show( MessageBox.Show(
"设置载入失败, 是否强制载入并重置\n[是]: 载入并重置\t[否]: 取消载入\n名称: {0}\n路径: {1}\n{2}".Translate( "设置载入失败, 是否强制载入并重置\n[是]: 载入并重置\t[否]: 取消载入\n名称: {0}\n路径: {1}\n异常: {2}".Translate(
fileName, fileName,
file, file,
ex.ToString() ex.ToString()