diff --git a/Source/Providers/H.Mvvm/ViewModels/DisplayBindableBase.cs b/Source/Providers/H.Mvvm/ViewModels/DisplayBindableBase.cs index 46af90c5..81c6d87b 100644 --- a/Source/Providers/H.Mvvm/ViewModels/DisplayBindableBase.cs +++ b/Source/Providers/H.Mvvm/ViewModels/DisplayBindableBase.cs @@ -14,7 +14,7 @@ public abstract class DisplayBindableBase : BindableBase, IDable { public DisplayBindableBase() { - var type=this.GetType(); + var type = this.GetType(); this.Name = type.Name; DisplayAttribute display = type.GetCustomAttribute(true); if (display != null) @@ -29,7 +29,7 @@ public DisplayBindableBase() } IDAttribute id = type.GetCustomAttribute(true); this.ID = id?.ID ?? type.Name; - + System.Collections.Generic.IEnumerable cmdps = type.GetProperties().Where(x => typeof(ICommand).IsAssignableFrom(x.PropertyType)); foreach (PropertyInfo cmdp in cmdps) { diff --git a/Source/Services/H.Services.Common/AssemblyInfo.cs b/Source/Services/H.Services.Common/AssemblyInfo.cs index b3a0abf1..69487284 100644 --- a/Source/Services/H.Services.Common/AssemblyInfo.cs +++ b/Source/Services/H.Services.Common/AssemblyInfo.cs @@ -1,3 +1,5 @@ +global using H.Iocable; +global using H.Services.Logger; global using System; global using System.Collections; global using System.Collections.Generic; @@ -13,8 +15,6 @@ global using System.Windows.Input; global using System.Windows.Markup; global using System.Windows.Media; -global using H.Iocable; -global using H.Services.Logger; [assembly: ThemeInfo( ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located diff --git a/Source/Services/H.Services.Common/Message/IocMessage.cs b/Source/Services/H.Services.Common/Message/IocMessage.cs index 87730731..1eb5d589 100644 --- a/Source/Services/H.Services.Common/Message/IocMessage.cs +++ b/Source/Services/H.Services.Common/Message/IocMessage.cs @@ -1,7 +1,5 @@ // Copyright © 2024 By HeBianGu(QQ:908293466) https://github.com/HeBianGu/WPF-Control -using H.Services.Common; - namespace H.Services.Common { public static class IocMessage diff --git a/Source/Services/H.Services.Logger/Logger/LogCommand.cs b/Source/Services/H.Services.Logger/Logger/LogCommand.cs index b429f593..af2c181c 100644 --- a/Source/Services/H.Services.Logger/Logger/LogCommand.cs +++ b/Source/Services/H.Services.Logger/Logger/LogCommand.cs @@ -1,5 +1,4 @@ -using System; -namespace H.Services.Logger +namespace H.Services.Logger { public class LogCommand : IocMarkupCommandBase { diff --git a/Source/Services/H.Services.Mail/AssemblyInfo.cs b/Source/Services/H.Services.Mail/AssemblyInfo.cs index ab573353..19bfa8a4 100644 --- a/Source/Services/H.Services.Mail/AssemblyInfo.cs +++ b/Source/Services/H.Services.Mail/AssemblyInfo.cs @@ -1,18 +1,5 @@ -global using System; -global using System.Collections; -global using System.Collections.Generic; -global using System.Collections.ObjectModel; -global using System.Linq; -global using System.Reflection; -global using System.Text; -global using System.Threading; -global using System.Threading.Tasks; global using System.Windows; -global using System.Windows.Controls; -global using System.Windows.Controls.Primitives; -global using System.Windows.Input; global using System.Windows.Markup; -global using System.Windows.Media; [assembly: ThemeInfo( ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located diff --git a/Source/Services/H.Services.Operation/AssemblyInfo.cs b/Source/Services/H.Services.Operation/AssemblyInfo.cs index 2efca10b..bfbe97dd 100644 --- a/Source/Services/H.Services.Operation/AssemblyInfo.cs +++ b/Source/Services/H.Services.Operation/AssemblyInfo.cs @@ -1,18 +1,5 @@ -global using System; -global using System.Collections; -global using System.Collections.Generic; -global using System.Collections.ObjectModel; -global using System.Linq; -global using System.Reflection; -global using System.Text; -global using System.Threading; -global using System.Threading.Tasks; global using System.Windows; -global using System.Windows.Controls; -global using System.Windows.Controls.Primitives; -global using System.Windows.Input; global using System.Windows.Markup; -global using System.Windows.Media; [assembly: ThemeInfo( ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located diff --git a/Source/Services/H.Services.Revertible/AssemblyInfo.cs b/Source/Services/H.Services.Revertible/AssemblyInfo.cs index 5f1fff9a..00bc09e1 100644 --- a/Source/Services/H.Services.Revertible/AssemblyInfo.cs +++ b/Source/Services/H.Services.Revertible/AssemblyInfo.cs @@ -1,19 +1,7 @@ +global using H.Iocable; global using System; -global using System.Collections; -global using System.Collections.Generic; -global using System.Collections.ObjectModel; -global using System.Linq; -global using System.Reflection; -global using System.Text; -global using System.Threading; -global using System.Threading.Tasks; global using System.Windows; -global using System.Windows.Controls; -global using System.Windows.Controls.Primitives; -global using System.Windows.Input; global using System.Windows.Markup; -global using System.Windows.Media; -global using H.Iocable; [assembly: ThemeInfo( ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located diff --git a/Source/Services/H.Services.Serializable/AssemblyInfo.cs b/Source/Services/H.Services.Serializable/AssemblyInfo.cs index c8402c82..c450236e 100644 --- a/Source/Services/H.Services.Serializable/AssemblyInfo.cs +++ b/Source/Services/H.Services.Serializable/AssemblyInfo.cs @@ -1,20 +1,8 @@ +global using H.Iocable; +global using H.Services.Logger; global using System; -global using System.Collections; -global using System.Collections.Generic; -global using System.Collections.ObjectModel; -global using System.Linq; -global using System.Reflection; -global using System.Text; -global using System.Threading; -global using System.Threading.Tasks; global using System.Windows; -global using System.Windows.Controls; -global using System.Windows.Controls.Primitives; -global using System.Windows.Input; global using System.Windows.Markup; -global using System.Windows.Media; -global using H.Iocable; -global using H.Services.Logger; [assembly: ThemeInfo( ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located