From e9f00b2f7adf15820b799239e8d47356bdaf4db5 Mon Sep 17 00:00:00 2001 From: Hakoyu Date: Sat, 13 Jan 2024 22:23:34 +0800 Subject: [PATCH] =?UTF-8?q?VPet.Solution=20=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VPet.Solution/Utils/ReflectionUtils.cs | 7 ++----- VPet.Solution/ViewModels/SettingEditor/SettingWindowVM.cs | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/VPet.Solution/Utils/ReflectionUtils.cs b/VPet.Solution/Utils/ReflectionUtils.cs index 76223ae..cad9e38 100644 --- a/VPet.Solution/Utils/ReflectionUtils.cs +++ b/VPet.Solution/Utils/ReflectionUtils.cs @@ -92,7 +92,7 @@ public static class ReflectionUtils continue; } if ( - property.IsDefined(typeof(ReflectionPropertyIgnoreAttribute)) + property.IsDefined(typeof(ReflectionPropertyAttribute)) && property.IsDefined(typeof(ReflectionPropertyConverterAttribute)) is false ) continue; @@ -229,10 +229,7 @@ public class ReflectionPropertyConverterAttribute : Attribute /// 反射属性忽视 /// [AttributeUsage(AttributeTargets.Property)] -public class ReflectionPropertyIgnoreAttribute : Attribute -{ - public ReflectionPropertyIgnoreAttribute() { } -} +public class ReflectionPropertyIgnoreAttribute : Attribute { } /// /// 反射设置 diff --git a/VPet.Solution/ViewModels/SettingEditor/SettingWindowVM.cs b/VPet.Solution/ViewModels/SettingEditor/SettingWindowVM.cs index f478f03..e86fcc6 100644 --- a/VPet.Solution/ViewModels/SettingEditor/SettingWindowVM.cs +++ b/VPet.Solution/ViewModels/SettingEditor/SettingWindowVM.cs @@ -173,7 +173,7 @@ public class SettingWindowVM : ObservableClass { if ( MessageBox.Show( - "设置载入失败, 是否强制载入并重置\n[是]: 载入并重置\t[否]: 取消载入\n名称: {0}\n路径: {1}\n{2}".Translate( + "设置载入失败, 是否强制载入并重置\n[是]: 载入并重置\t[否]: 取消载入\n名称: {0}\n路径: {1}\n异常: {2}".Translate( fileName, file, ex.ToString()