├── _config.yml
├── H.Framework.WPF.Control
├── Utilities
│ ├── Enums.cs
│ └── Extensions.cs
├── Resources
│ └── Icons
│ │ ├── ok.png
│ │ ├── save.png
│ │ ├── close.png
│ │ └── downFile.png
├── Properties
│ ├── Settings.settings
│ ├── Settings.Designer.cs
│ ├── AssemblyInfo.cs
│ └── Resources.Designer.cs
├── packages.config
├── H.Framework.WPF.Control.csproj.user
├── Controls
│ ├── Capture
│ │ ├── Config.cs
│ │ ├── ToolBarControl.xaml.cs
│ │ ├── IndicatorObject.cs
│ │ ├── ThumbBase.cs
│ │ ├── MoveThumb.cs
│ │ ├── BitmapCursor.cs
│ │ ├── ToolBarControl.xaml
│ │ └── ScreenCapture.cs
│ ├── ExtendedWindows
│ │ ├── FunctionBar.cs
│ │ ├── WindowService.WindowCommandHelper.cs
│ │ └── ExtendedWindow.cs
│ ├── SwingLoading.cs
│ ├── ExpanderEx.cs
│ ├── MarketLoading.cs
│ ├── BusyChrome.cs
│ ├── RectangleLoading.cs
│ ├── ButtonEx.cs
│ ├── BusyDecorator.cs
│ ├── RadioButtonEx.cs
│ ├── ImageButton.cs
│ ├── BusyCircle.cs
│ └── UnreadTip.cs
├── Adorners
│ ├── SearchBoxFocusAdorner.cs
│ ├── BusyAdorner.cs
│ └── DragAdorner.cs
├── Themes
│ ├── CaptionsMarquee.generic.xaml
│ ├── ImageButton.generic.xaml
│ ├── RadioButtonEx.generic.xaml
│ ├── BusyCircle.generic.xaml
│ ├── Generic.xaml
│ ├── PieButton.generic.xaml
│ ├── ExpanderEx.generic.xaml
│ ├── ButtonEx.generic.xaml
│ └── UnreadTip.generic.xaml
└── ControlHelpers
│ └── TextBoxHelper.cs
├── H.Framework.WPF.UITest
├── i_emoji.png
├── s_emoji.png
├── RPC
│ ├── ZeusUserMsg.cs
│ ├── ZeusCommonMsg.cs
│ └── ZeusNotificationMsg.cs
├── SplashScreenBG.png
├── SplashScreenFG.png
├── Properties
│ ├── Settings.settings
│ ├── Settings.Designer.cs
│ ├── AssemblyInfo.cs
│ └── Resources.Designer.cs
├── TestWindow.xaml.cs
├── SingleApp.cs
├── App.xaml.cs
├── EFCoreTest.cs
├── App.xaml
└── packages.config
├── H.Framework.NETCore.IoC
├── Autofac
│ ├── ISingletonDependency.cs
│ ├── ITransientDependency.cs
│ ├── IDependencyRegistrar.cs
│ └── IIoCManager.cs
└── H.Framework.NETCore.IoC.csproj
├── H.Framework.Data.ORM
├── Foundations
│ ├── IFoundationModel.cs
│ ├── IFoundationViewModel.cs
│ ├── OrderByEntity.cs
│ ├── IFoundationDAL.cs
│ ├── SqlParamModel.cs
│ └── IFoundationBLL.cs
├── Attributes
│ ├── OnlyQueryAttribute.cs
│ ├── LastIDConditionAttribute.cs
│ ├── DataFieldIgnoreAttribute.cs
│ ├── PrimaryKeyIDAttribute.cs
│ ├── DataFieldAttribute.cs
│ ├── DataTableAttribute.cs
│ ├── DynamicSQLFieldAttribute.cs
│ ├── ForeignKeyIDAttribute.cs
│ ├── ForeignAttribute.cs
│ └── DetailListAttribute.cs
├── H.Framework.Data.ORM.csproj
├── BaseDAL.cs
└── BaseBLL.cs
├── H.Framework.WPF.Infrastructure
├── packages.config
├── Mvvm
│ ├── Command
│ │ ├── ParameterEventArgs.cs
│ │ └── OperationCommand.cs
│ ├── BasicViewModel.cs
│ └── BasicEntity.cs
├── Converters
│ ├── SimpleMathConverter.cs
│ ├── ObjectConverter.cs
│ ├── EmptyObjectToVisibilityConverter.cs
│ └── MultiObjectConverter.cs
├── Properties
│ └── AssemblyInfo.cs
├── Behaviors
│ └── ControlFocusBehaviorBase.cs
└── Utilities
│ ├── PopupHelper.cs
│ ├── PasswordBoxHelper.cs
│ ├── ScrollViewerExtensions.cs
│ └── ImageExtender.cs
├── H.Framework.Core
├── Utilities
│ ├── Utility.cs
│ ├── EqualityComparerUtility.cs
│ ├── EndianExtensions.cs
│ ├── TimeHelper.cs
│ └── ValidationExtension.cs
├── Mapping
│ ├── ICustomMap.cs
│ ├── MappingSourceAttribute.cs
│ └── Mapping.cs
├── Log
│ ├── LogMessage.cs
│ ├── ILogger.cs
│ └── LogHelper.cs
├── List
│ └── IItemsProvider.cs
├── H.Framework.Core.csproj
└── Attributes
│ └── DataValidationAttribute.cs
├── H.Framework.WPF.UI.Test
├── App.xaml.cs
├── App.xaml
├── H.Framework.WPF.UI.Test.csproj
├── MainWindow.xaml
└── AssemblyInfo.cs
├── H.Framework.Aliyun.Log
├── H.Framework.Aliyun.Log.csproj
├── LogCore.cs
└── LogCenter.cs
├── H.Framework.U-Push
├── Bases
│ ├── IPush.cs
│ ├── ReturnJsonClass.cs
│ └── SerializableDictionary.cs
└── H.Framework.UMeng.Push.csproj
├── H.Framework.Aliyun.MNS
├── H.Framework.Aliyun.MNS.csproj
├── MNSCenter.cs
└── MNSCore.cs
└── H.Framework.Aliyun.ACM
├── H.Framework.Aliyun.ACM.csproj
├── AliyunACMResp.cs
├── AliyunACMRequest.cs
└── AliyunRequest.cs
/_config.yml:
--------------------------------------------------------------------------------
1 | theme: jekyll-theme-leap-day
--------------------------------------------------------------------------------
/H.Framework.WPF.Control/Utilities/Enums.cs:
--------------------------------------------------------------------------------
1 | namespace H.Framework.WPF.Control.Utilities
2 | {
3 | }
--------------------------------------------------------------------------------
/H.Framework.WPF.UITest/i_emoji.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hjj28810/H.Framework/HEAD/H.Framework.WPF.UITest/i_emoji.png
--------------------------------------------------------------------------------
/H.Framework.WPF.UITest/s_emoji.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hjj28810/H.Framework/HEAD/H.Framework.WPF.UITest/s_emoji.png
--------------------------------------------------------------------------------
/H.Framework.WPF.UITest/RPC/ZeusUserMsg.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hjj28810/H.Framework/HEAD/H.Framework.WPF.UITest/RPC/ZeusUserMsg.cs
--------------------------------------------------------------------------------
/H.Framework.WPF.UITest/SplashScreenBG.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hjj28810/H.Framework/HEAD/H.Framework.WPF.UITest/SplashScreenBG.png
--------------------------------------------------------------------------------
/H.Framework.WPF.UITest/SplashScreenFG.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hjj28810/H.Framework/HEAD/H.Framework.WPF.UITest/SplashScreenFG.png
--------------------------------------------------------------------------------
/H.Framework.WPF.UITest/RPC/ZeusCommonMsg.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hjj28810/H.Framework/HEAD/H.Framework.WPF.UITest/RPC/ZeusCommonMsg.cs
--------------------------------------------------------------------------------
/H.Framework.WPF.Control/Resources/Icons/ok.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hjj28810/H.Framework/HEAD/H.Framework.WPF.Control/Resources/Icons/ok.png
--------------------------------------------------------------------------------
/H.Framework.WPF.Control/Resources/Icons/save.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hjj28810/H.Framework/HEAD/H.Framework.WPF.Control/Resources/Icons/save.png
--------------------------------------------------------------------------------
/H.Framework.WPF.Control/Resources/Icons/close.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hjj28810/H.Framework/HEAD/H.Framework.WPF.Control/Resources/Icons/close.png
--------------------------------------------------------------------------------
/H.Framework.WPF.UITest/RPC/ZeusNotificationMsg.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hjj28810/H.Framework/HEAD/H.Framework.WPF.UITest/RPC/ZeusNotificationMsg.cs
--------------------------------------------------------------------------------
/H.Framework.WPF.Control/Resources/Icons/downFile.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hjj28810/H.Framework/HEAD/H.Framework.WPF.Control/Resources/Icons/downFile.png
--------------------------------------------------------------------------------
/H.Framework.NETCore.IoC/Autofac/ISingletonDependency.cs:
--------------------------------------------------------------------------------
1 | namespace H.Framework.NETCore.IoC.Autofac
2 | {
3 | public interface ISingletonDependency
4 | {
5 | }
6 | }
--------------------------------------------------------------------------------
/H.Framework.NETCore.IoC/Autofac/ITransientDependency.cs:
--------------------------------------------------------------------------------
1 | namespace H.Framework.NETCore.IoC.Autofac
2 | {
3 | public interface ITransientDependency
4 | {
5 | }
6 | }
--------------------------------------------------------------------------------
/H.Framework.Data.ORM/Foundations/IFoundationModel.cs:
--------------------------------------------------------------------------------
1 | namespace H.Framework.Data.ORM.Foundations
2 | {
3 | public interface IFoundationModel
4 | {
5 | string ID { get; set; }
6 | }
7 | }
--------------------------------------------------------------------------------
/H.Framework.WPF.Infrastructure/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/H.Framework.Data.ORM/Foundations/IFoundationViewModel.cs:
--------------------------------------------------------------------------------
1 | namespace H.Framework.Data.ORM.Foundations
2 | {
3 | public interface IFoundationViewModel
4 | {
5 | string ID { get; set; }
6 | }
7 | }
--------------------------------------------------------------------------------
/H.Framework.Core/Utilities/Utility.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace H.Framework.Core.Utilities
4 | {
5 | public class Utility
6 | {
7 | public static string ObjectID => Guid.NewGuid().ToString("N");
8 | }
9 | }
--------------------------------------------------------------------------------
/H.Framework.WPF.Control/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/H.Framework.WPF.UITest/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/H.Framework.WPF.Control/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/H.Framework.Core/Mapping/ICustomMap.cs:
--------------------------------------------------------------------------------
1 | namespace H.Framework.Core.Mapping
2 | {
3 | public interface ICustomMap
4 | {
5 | void MapFrom(T source);
6 | }
7 |
8 | public interface ICustomMap
9 | {
10 | void MapFrom(object source);
11 | }
12 | }
--------------------------------------------------------------------------------
/H.Framework.Data.ORM/Foundations/OrderByEntity.cs:
--------------------------------------------------------------------------------
1 | namespace H.Framework.Data.ORM.Foundations
2 | {
3 | public class OrderByEntity
4 | {
5 | public string KeyWord { get; set; }
6 | public bool IsAsc { get; set; }
7 | public bool IsMainTable { get; set; }
8 | }
9 | }
--------------------------------------------------------------------------------
/H.Framework.Data.ORM/Attributes/OnlyQueryAttribute.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace H.Framework.Data.ORM.Attributes
6 | {
7 | [AttributeUsage(AttributeTargets.Property)]
8 | public class OnlyQueryAttribute : Attribute
9 | {
10 | }
11 | }
--------------------------------------------------------------------------------
/H.Framework.Data.ORM/Attributes/LastIDConditionAttribute.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace H.Framework.Data.ORM.Attributes
4 | {
5 | ///
6 | /// 查询最新自增ID的条件
7 | ///
8 | [AttributeUsage(AttributeTargets.Property)]
9 | public class LastIDConditionAttribute : Attribute
10 | {
11 | }
12 | }
--------------------------------------------------------------------------------
/H.Framework.WPF.Control/H.Framework.WPF.Control.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Project
5 |
6 |
--------------------------------------------------------------------------------
/H.Framework.WPF.Infrastructure/Mvvm/Command/ParameterEventArgs.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace H.Framework.WPF.Infrastructure.Mvvm.Command
8 | {
9 | public class ParameterEventArgs : EventArgs
10 | {
11 | public object Parameter;
12 | }
13 | }
--------------------------------------------------------------------------------
/H.Framework.WPF.UITest/TestWindow.xaml.cs:
--------------------------------------------------------------------------------
1 | using H.Framework.WPF.Control.Controls;
2 |
3 | namespace H.Framework.WPF.UITest
4 | {
5 | ///
6 | /// TestWindow.xaml 的交互逻辑
7 | ///
8 | public partial class TestWindow : WindowEx
9 | {
10 | public TestWindow()
11 | {
12 | InitializeComponent();
13 | }
14 | }
15 | }
--------------------------------------------------------------------------------
/H.Framework.WPF.UI.Test/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Configuration;
4 | using System.Data;
5 | using System.Linq;
6 | using System.Threading.Tasks;
7 | using System.Windows;
8 |
9 | namespace H.Framework.WPF.UI.Test
10 | {
11 | ///
12 | /// Interaction logic for App.xaml
13 | ///
14 | public partial class App : Application
15 | {
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/H.Framework.Aliyun.Log/H.Framework.Aliyun.Log.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netstandard2.1
5 | true
6 | AnyCPU;x64;x86
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/H.Framework.U-Push/Bases/IPush.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace H.Framework.UMeng.Push.Bases
6 | {
7 | public interface IPush
8 | {
9 | ReturnJsonClass SendMessage(PostUMengJson paramsJsonObj) where T : class, new();
10 |
11 | void AsynSendMessage(PostUMengJson paramsJsonObj, Action callback) where T : class, new();
12 | }
13 | }
--------------------------------------------------------------------------------
/H.Framework.WPF.UI.Test/App.xaml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/H.Framework.Aliyun.MNS/H.Framework.Aliyun.MNS.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netstandard2.1
5 | 1.0.0.1
6 | true
7 | AnyCPU;x64;x86
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/H.Framework.WPF.UI.Test/H.Framework.WPF.UI.Test.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | WinExe
5 | net5.0-windows
6 | true
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/H.Framework.Aliyun.ACM/H.Framework.Aliyun.ACM.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netstandard2.1
5 | 1.0.0.0
6 | true
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/H.Framework.WPF.UI.Test/MainWindow.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/H.Framework.Data.ORM/Attributes/DataFieldIgnoreAttribute.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace H.Framework.Data.ORM.Attributes
4 | {
5 | [AttributeUsage(AttributeTargets.Property)]
6 | public sealed class DataFieldIgnoreAttribute : Attribute
7 | {
8 | ///
9 | /// 表对应的字段名
10 | ///
11 | public string ColumnName { set; get; }
12 |
13 | public DataFieldIgnoreAttribute(string columnName)
14 | {
15 | ColumnName = columnName;
16 | }
17 |
18 | public DataFieldIgnoreAttribute()
19 | {
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/H.Framework.Data.ORM/Attributes/PrimaryKeyIDAttribute.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace H.Framework.Data.ORM.Attributes
4 | {
5 | [AttributeUsage(AttributeTargets.Property)]
6 | public class PrimaryKeyIDAttribute : Attribute
7 | {
8 | ///
9 | /// 主键对应的字段名
10 | ///
11 | public string KeyName { set; get; }
12 |
13 | ///
14 | /// 构造函数
15 | ///
16 | /// 主键对应的字段名
17 | public PrimaryKeyIDAttribute(string keyName = "")
18 | {
19 | keyName = KeyName;
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/H.Framework.Data.ORM/Attributes/DataFieldAttribute.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace H.Framework.Data.ORM.Attributes
4 | {
5 | [AttributeUsage(AttributeTargets.Property)]
6 | public sealed class DataFieldAttribute : Attribute
7 | {
8 | ///
9 | /// 表映射的字段名
10 | ///
11 | public string ColumnName { set; get; }
12 |
13 | ///
14 | /// 构造函数
15 | ///
16 | /// 表映射的字段名
17 | public DataFieldAttribute(string columnName)
18 | {
19 | ColumnName = columnName;
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/H.Framework.WPF.UI.Test/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 |
3 | [assembly: ThemeInfo(
4 | ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
5 | //(used if a resource is not found in the page,
6 | // or application resource dictionaries)
7 | ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
8 | //(used if a resource is not found in the page,
9 | // app, or any theme specific resource dictionaries)
10 | )]
11 |
--------------------------------------------------------------------------------
/H.Framework.Data.ORM/Attributes/DataTableAttribute.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace H.Framework.Data.ORM.Attributes
6 | {
7 | [AttributeUsage(AttributeTargets.Class)]
8 | public class DataTableAttribute : Attribute
9 | {
10 | ///
11 | /// 表映射的表名
12 | ///
13 | public string TableName { set; get; }
14 |
15 | ///
16 | /// 构造函数
17 | ///
18 | /// 表映射的表名
19 | public DataTableAttribute(string tableName)
20 | {
21 | TableName = tableName;
22 | }
23 | }
24 | }
--------------------------------------------------------------------------------
/H.Framework.NETCore.IoC/Autofac/IDependencyRegistrar.cs:
--------------------------------------------------------------------------------
1 | using Autofac;
2 | using System;
3 | using System.Collections.Generic;
4 |
5 | namespace H.Framework.NETCore.IoC.Autofac
6 | {
7 | public interface IDependencyRegistrar
8 | {
9 | ///
10 | /// Register services and interfaces
11 | ///
12 | /// Container builder
13 | /// Config
14 | void Register(ContainerBuilder builder, List listType);
15 |
16 | ///
17 | /// Order of this dependency registrar implementation
18 | ///
19 | int Order { get; }
20 | }
21 | }
--------------------------------------------------------------------------------
/H.Framework.Aliyun.Log/LogCore.cs:
--------------------------------------------------------------------------------
1 | using Aliyun.Api.LogService;
2 |
3 | namespace H.Framework.Aliyun.Log
4 | {
5 | public class LogCore
6 | {
7 | public LogCore(string projectName, string accessKeyId, string secretAccessKey, string endpoint)
8 | {
9 | Client = LogServiceClientBuilders.HttpBuilder
10 | .Endpoint(endpoint, projectName)
11 | .Credential(accessKeyId, secretAccessKey)
12 | .Build();
13 | ProjectName = projectName;
14 | }
15 |
16 | public ILogServiceClient Client { get; }
17 |
18 | public string ProjectName { get; private set; }
19 | }
20 | }
--------------------------------------------------------------------------------
/H.Framework.Core/Mapping/MappingSourceAttribute.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace H.Framework.Core.Mapping
4 | {
5 | [AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
6 | public class MappingSourceAttribute : Attribute
7 | {
8 | public MappingSourceAttribute(string name)
9 | : this(null, name)
10 | { }
11 |
12 | public MappingSourceAttribute(Type type, string name)
13 | {
14 | this.SourceType = type;
15 | this.Name = name;
16 | }
17 |
18 | public Type SourceType { get; }
19 |
20 | public string Name { get; }
21 | }
22 |
23 | public class MappingIgnoreAttribute : Attribute
24 | { }
25 | }
--------------------------------------------------------------------------------
/H.Framework.Data.ORM/Attributes/DynamicSQLFieldAttribute.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace H.Framework.Data.ORM.Attributes
6 | {
7 | [AttributeUsage(AttributeTargets.Property)]
8 | public class DynamicSQLFieldAttribute : Attribute
9 | {
10 | ///
11 | /// 动态sql语句
12 | ///
13 | public string SQLString { set; get; }
14 |
15 | ///
16 | /// 构造函数
17 | ///
18 | /// 动态sql语句
19 | public DynamicSQLFieldAttribute(string sqlString)
20 | {
21 | SQLString = sqlString;
22 | }
23 | }
24 | }
--------------------------------------------------------------------------------
/H.Framework.Data.ORM/Attributes/ForeignKeyIDAttribute.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace H.Framework.Data.ORM.Attributes
4 | {
5 | ///
6 | /// 一对多,在外键表设置ForeignKeyID
7 | ///
8 | [AttributeUsage(AttributeTargets.Property)]
9 | public sealed class ForeignKeyIDAttribute : Attribute
10 | {
11 | ///
12 | /// 表对应的字段名
13 | ///
14 | public string TableName { set; get; }
15 |
16 | ///
17 | /// 构造函数
18 | ///
19 | /// 表对应的字段名
20 | public ForeignKeyIDAttribute(string tableName = "")
21 | {
22 | TableName = tableName;
23 | }
24 | }
25 | }
--------------------------------------------------------------------------------
/H.Framework.Core/Log/LogMessage.cs:
--------------------------------------------------------------------------------
1 | using Newtonsoft.Json;
2 | using System;
3 |
4 | namespace H.Framework.Core.Log
5 | {
6 | public class LogMessage
7 | {
8 | public LogMessage()
9 | {
10 | TimeStamp = DateTimeOffset.Now.ToString("O");
11 | }
12 |
13 | public string Title { get; set; }
14 |
15 | public string TimeStamp { get; set; }
16 |
17 | public T Data { get; set; }
18 |
19 | public override string ToString()
20 | {
21 | return JsonConvert.SerializeObject(this);
22 | }
23 | }
24 |
25 | public enum LogType
26 | {
27 | Error,
28 | Business,
29 | System,
30 | Other,
31 | Aliyun
32 | }
33 | }
--------------------------------------------------------------------------------
/H.Framework.NETCore.IoC/H.Framework.NETCore.IoC.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | net6.0
5 | 1.0.0.5
6 | 1.0.0.5
7 | false
8 | true
9 | AnyCPU;x64;x86
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/H.Framework.Core/List/IItemsProvider.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace H.Framework.Core.List
8 | {
9 | public interface IItemsProvider
10 | {
11 | ///
12 | /// Fetches the total number of items available.
13 | ///
14 | ///
15 | int FetchCount();
16 |
17 | ///
18 | /// Fetches a range of items.
19 | ///
20 | /// The start index.
21 | /// The number of items to fetch.
22 | ///
23 | IList FetchRange(int startIndex, int count);
24 | }
25 | }
--------------------------------------------------------------------------------
/H.Framework.Data.ORM/H.Framework.Data.ORM.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netstandard2.1
5 | 1.0.9.0
6 | true
7 | 1.0.7.0
8 | 1.0.7.0
9 | H
10 | Alvin Huang
11 | H.Framework
12 | AnyCPU;x64;x86
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/H.Framework.U-Push/H.Framework.UMeng.Push.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netstandard2.1
5 | H.Framework.UMeng.Push
6 | 1.0.0.5
7 | true
8 | 1.0.0.5
9 | AnyCPU;x64;x86
10 | 1.0.0.5
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/H.Framework.WPF.Control/Controls/Capture/Config.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 | using System.Windows.Media;
3 |
4 | namespace H.Framework.WPF.Control.Controls.Capture
5 | {
6 | internal static class Config
7 | {
8 | public static Brush SelectionBorderBrush = new SolidColorBrush(Color.FromArgb(255, 49, 106, 196));
9 | public static Thickness SelectionBorderThickness = new Thickness(2.0);
10 | public static Brush MaskWindowBackground = new SolidColorBrush(Color.FromArgb(45, 255, 255, 255));
11 | }
12 |
13 | internal enum ResizeThumbPlacement
14 | {
15 | None,
16 | LeftTop,
17 | TopCenter,
18 | RightTop,
19 | RightCenter,
20 | RightBottom,
21 | BottomCenter,
22 | LeftBottom,
23 | LeftCenter
24 | }
25 | }
--------------------------------------------------------------------------------
/H.Framework.WPF.UITest/SingleApp.cs:
--------------------------------------------------------------------------------
1 | using H.Framework.WPF.Infrastructure.Utilities;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Linq;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 |
8 | namespace H.Framework.WPF.UITest
9 | {
10 | internal class SingleApp
11 | {
12 | [STAThread]
13 | public static void Main()
14 | {
15 | if (SingleInstance.InitializeAsFirstInstance("888666555"))
16 | {
17 | var application = new App();
18 | application.InitializeComponent();
19 | application.Run();
20 |
21 | // Allow single instance code to perform cleanup operations
22 | SingleInstance.Cleanup();
23 | }
24 | }
25 | }
26 | }
--------------------------------------------------------------------------------
/H.Framework.WPF.UITest/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using H.Framework.WPF.Infrastructure.Utilities;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Configuration;
5 | using System.Data;
6 | using System.Linq;
7 | using System.Threading.Tasks;
8 | using System.Windows;
9 |
10 | namespace H.Framework.WPF.UITest
11 | {
12 | ///
13 | /// App.xaml 的交互逻辑
14 | ///
15 | public partial class App : Application, ISingleInstanceApp
16 | {
17 | public bool SignalExternalCommandLineArgs(IList args)
18 | {
19 | if (MainWindow.WindowState == WindowState.Minimized)
20 | {
21 | MainWindow.WindowState = WindowState.Normal;
22 | }
23 |
24 | MainWindow.Activate();
25 | return true;
26 | }
27 | }
28 | }
--------------------------------------------------------------------------------
/H.Framework.WPF.Infrastructure/Converters/SimpleMathConverter.cs:
--------------------------------------------------------------------------------
1 | using H.Framework.Core.Utilities;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Globalization;
5 | using System.Linq;
6 | using System.Text;
7 | using System.Threading.Tasks;
8 | using System.Windows.Data;
9 |
10 | namespace H.Framework.WPF.Infrastructure.Converters
11 | {
12 | public class SimpleMathConverter : IValueConverter
13 | {
14 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
15 | {
16 | return (value.ToString() + parameter.ToString()).Calc();
17 | }
18 |
19 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
20 | {
21 | throw new NotImplementedException();
22 | }
23 | }
24 | }
--------------------------------------------------------------------------------
/H.Framework.WPF.Infrastructure/Mvvm/Command/OperationCommand.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using System.Windows.Input;
7 |
8 | namespace H.Framework.WPF.Infrastructure.Mvvm.Command
9 | {
10 | public class OperationCommand : ICommand
11 | {
12 | public bool CanExecute(object parameter)
13 | {
14 | CanExecuteChanged?.Invoke(this, new ParameterEventArgs() { Parameter = parameter });
15 | return true;
16 | }
17 |
18 | public event EventHandler CanExecuteChanged;
19 |
20 | public void Execute(object parameter)
21 | {
22 | Executing?.Invoke(this, new ParameterEventArgs() { Parameter = parameter });
23 | }
24 |
25 | public event EventHandler Executing;
26 | }
27 | }
--------------------------------------------------------------------------------
/H.Framework.NETCore.IoC/Autofac/IIoCManager.cs:
--------------------------------------------------------------------------------
1 | using Autofac;
2 | using Autofac.Core;
3 | using System;
4 |
5 | namespace H.Framework.NETCore.IoC.Autofac
6 | {
7 | public interface IIoCManager
8 | {
9 | IContainer Container { get; }
10 |
11 | bool IsRegistered(Type serviceType);
12 |
13 | object Resolve(Type type);
14 |
15 | T Resolve(string key = "") where T : class;
16 |
17 | T Resolve(params Parameter[] parameters) where T : class;
18 |
19 | T[] ResolveAll(string key = "");
20 |
21 | object ResolveOptional(Type serviceType);
22 |
23 | object ResolveUnregistered(Type type);
24 |
25 | T ResolveUnregistered() where T : class;
26 |
27 | void InitScope();
28 |
29 | ILifetimeScope Scope { get; set; }
30 |
31 | bool TryResolve(Type serviceType, out object instance);
32 | }
33 | }
--------------------------------------------------------------------------------
/H.Framework.WPF.Control/Controls/ExtendedWindows/FunctionBar.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Collections.ObjectModel;
4 | using System.Linq;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 | using System.Windows;
8 | using System.Windows.Controls;
9 |
10 | namespace H.Framework.WPF.Control.Controls.ExtendedWindows
11 | {
12 | public class FunctionBar : HeaderedItemsControl
13 | {
14 | public FunctionBar()
15 | {
16 | }
17 |
18 | public ObservableCollection