浏览代码

代码检查,更新Readme

yuzhengyang 6 年之前
父节点
当前提交
9652fbf38b

+ 21 - 10
Azylee.Utils/Azylee.Core/DataUtils/CompressionUtils/Compression.cs

@@ -7,12 +7,19 @@ using System.Text;
 
 namespace Azylee.Core.DataUtils.CompressionUtils
 {
+    /// <summary>
+    /// 压缩工具
+    /// </summary>
     public static class Compression
     {
-        //压缩字节
-        //1.创建压缩的数据流 
-        //2.设定compressStream为存放被压缩的文件流,并设定为压缩模式
-        //3.将需要压缩的字节写到被压缩的文件流
+        /// <summary>
+        /// 压缩字节
+        /// 1.创建压缩的数据流 
+        /// 2.设定compressStream为存放被压缩的文件流,并设定为压缩模式
+        /// 3.将需要压缩的字节写到被压缩的文件流
+        /// </summary>
+        /// <param name="bytes"></param>
+        /// <returns></returns>
         public static byte[] Compress(byte[] bytes)
         {
             try
@@ -26,12 +33,16 @@ namespace Azylee.Core.DataUtils.CompressionUtils
             }
             catch { return null; }
         }
-        //解压缩字节
-        //1.创建被压缩的数据流
-        //2.创建zipStream对象,并传入解压的文件流
-        //3.创建目标流
-        //4.zipStream拷贝到目标流
-        //5.返回目标流输出字节
+        /// <summary>
+        /// 解压缩字节
+        /// 1.创建被压缩的数据流
+        /// 2.创建zipStream对象,并传入解压的文件流
+        /// 3.创建目标流
+        /// 4.zipStream拷贝到目标流
+        /// 5.返回目标流输出字节
+        /// </summary>
+        /// <param name="bytes"></param>
+        /// <returns></returns>
         public static byte[] Decompress(byte[] bytes)
         {
             try

+ 1 - 1
Azylee.Utils/Azylee.Core/Properties/AssemblyInfo.cs

@@ -32,4 +32,4 @@ using System.Runtime.InteropServices;
 // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
 //通过使用 "*",如下所示:
 // [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.6")]
+[assembly: AssemblyVersion("1.0.0.8")]

+ 4 - 0
Azylee.Utils/Azylee.Update/Azylee.Update.csproj

@@ -50,6 +50,10 @@
       <Project>{88dc61fa-95f0-41b7-9d7d-ab0f3cbd169c}</Project>
       <Name>Azylee.Core</Name>
     </ProjectReference>
+    <ProjectReference Include="..\Azylee.Jsons\Azylee.Jsons.csproj">
+      <Project>{de3ab999-96d3-4a53-a9f2-7409138d0333}</Project>
+      <Name>Azylee.Jsons</Name>
+    </ProjectReference>
     <ProjectReference Include="..\Azylee.YeahWeb\Azylee.YeahWeb.csproj">
       <Project>{ccf7a654-b442-4db1-bb3b-0f8014c3237f}</Project>
       <Name>Azylee.YeahWeb</Name>

+ 2 - 2
Azylee.Utils/Azylee.Update/UpdateUtils/AppUpdateTool.cs

@@ -10,8 +10,8 @@ using Azylee.Core.DelegateUtils.ProcessDelegateUtils;
 using Azylee.Core.IOUtils.DirUtils;
 using Azylee.Core.IOUtils.FileUtils;
 using Azylee.Core.IOUtils.PathUtils;
-using Azylee.Core.Plus.DataUtils.JsonUtils;
 using Azylee.Core.VersionUtils;
+using Azylee.Jsons;
 using Azylee.YeahWeb.FTPUtils;
 using Azylee.YeahWeb.HttpUtils;
 using System;
@@ -41,7 +41,7 @@ namespace Azylee.Update.UpdateUtils
             Stopwatch stopwatch = new Stopwatch();
             stopwatch.Start();
 
-            info = JsonTool.ToObjFromStr<AppUpdateInfo>(s);
+            info = Json.String2Object<AppUpdateInfo>(s);
             if (info != null)
             {
                 Version newVersion = VersionTool.Format(info.Version);

+ 4 - 6
Azylee.Utils/Tests/Test.Runrun/Test.Runrun.csproj

@@ -31,6 +31,9 @@
     <WarningLevel>4</WarningLevel>
   </PropertyGroup>
   <ItemGroup>
+    <Reference Include="Azylee.Core, Version=1.0.0.8, Culture=neutral, processorArchitecture=MSIL">
+      <HintPath>..\..\packages\Azylee.Core.1.0.0.8\lib\Azylee.Core.dll</HintPath>
+    </Reference>
     <Reference Include="System" />
     <Reference Include="System.Core" />
     <Reference Include="System.Xml.Linq" />
@@ -63,6 +66,7 @@
       <AutoGen>True</AutoGen>
       <DependentUpon>Resources.resx</DependentUpon>
     </Compile>
+    <None Include="packages.config" />
     <None Include="Properties\Settings.settings">
       <Generator>SettingsSingleFileGenerator</Generator>
       <LastGenOutput>Settings.Designer.cs</LastGenOutput>
@@ -73,11 +77,5 @@
       <DesignTimeSharedInput>True</DesignTimeSharedInput>
     </Compile>
   </ItemGroup>
-  <ItemGroup>
-    <ProjectReference Include="..\..\Azylee.Core\Azylee.Core.csproj">
-      <Project>{88dc61fa-95f0-41b7-9d7d-ab0f3cbd169c}</Project>
-      <Name>Azylee.Core</Name>
-    </ProjectReference>
-  </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
 </Project>

+ 4 - 0
Azylee.Utils/Tests/Test.Runrun/packages.config

@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+  <package id="Azylee.Core" version="1.0.0.8" targetFramework="net40" />
+</packages>

+ 100 - 38
README.md

@@ -1,19 +1,20 @@
-# Fork
+# Fork
 
 [![NuGet](https://img.shields.io/nuget/dt/Azylee.Core.svg)](https://www.nuget.org/packages/Azylee.Core) 
 [![Fork](https://img.shields.io/github/forks/yuzhengyang/Fork.svg?style=social&label=Fork)](https://github.com/yuzhengyang/Fork/fork) 
 [![Stars](https://img.shields.io/github/stars/yuzhengyang/Fork.svg?style=social&label=Stars)](https://github.com/yuzhengyang/Fork) 
 
-Fork 是平时在做 C# 项目的时候,收藏整理的一个工具项目,包括各种常用的工具和方法,窗口控件等。
+Fork 是平时做 C# 软件的时候,整合各种轮子的一个工具项目,包括并不仅限于:各种常用数据处理方法,文件读写 加密 搜索,系统信息 API 操作,Winform窗口控件等等。
 
-持续完善更新中……
+更多功能,不定期更新……
 
 已添加到 Nuget 的库,可直接在 VS 中搜索安装。
 
 | # | 模块     | DLL        | Nuget                                                  | 支持 .NET 版本|
 |---|---------|------------|---------------------------------------------------------|---------------|
-| 1 | 核心库 | Azylee.Core | [1.0.0.4](https://www.nuget.org/packages/Azylee.Core/)  | 4.0          |
-| 2 | 增强库 | Azylee.Core.Plus | -                                                  | 4.0          |
+| 1 | 核心库 | Azylee.Core | [1.0.0.8](https://www.nuget.org/packages/Azylee.Core/)  | 4.0          |
+| 2 | Json库 | Azylee.Jsons | -                                                       | 4.0          |
+| 2 | 网络库 | Azylee.YeahWeb | -                                               | 4.0          |
 
 
 
@@ -23,17 +24,17 @@ Fork 是平时在做 C# 项目的时候,收藏整理的一个工具项目,
 
 > 目前 Azylee.utils 工具组包含以下部分:
 
-1. Azylee.Core : 基础方法
-2. Azylee.Core.Plus : 带其他引用的扩展方法
+1. Azylee.Core : 核心
+2. Azylee.Json : Json 工具包
 3. Azylee.Update : 更新工具包
-4. Azylee.YeahWeb : Http 及网络相关工具包
-5. Azylee.WinformMan : Winform 窗体管理
-6. Azylee.WinformSkin : Winform 样式和控件
+4. Azylee.YeahWeb : 网络通信工具包
+5. Azylee.WinformSkin : Winform 样式和控件
 
 ### Azylee.Core 模块:
 
-> - 包含常用的基础工具方法
-> - 无需其他引用
+> - 包含常用的工具方法
+> - 无其他第三方引用
+> - 编译后仅一个 dll 文件
 
 ```
 ● AppUtils:程序辅助工具
@@ -50,8 +51,11 @@ Fork 是平时在做 C# 项目的时候,收藏整理的一个工具项目,
     ┣ ListTool.cs               // 列表内容判断
     ┗ Ls.cs                     // 列表内容判断(ListTool)
     
+  ┣ CompressionUtils:压缩处理
+    ┗ Compression.cs            // 字节压缩
+    
   ┣ CurrencyUtils:货币处理
-    ┗ RMB.cs:集合处理          // 人民币格式化
+    ┗ RMB.cs                    // 人民币格式化
     
   ┣ DateTimeUtils:日期时间处理
     ┣ ChineseHourTool.cs        // 中文时辰转换
@@ -95,9 +99,13 @@ Fork 是平时在做 C# 项目的时候,收藏整理的一个工具项目,
   ┗ DllInvokeTool.cs            // Dll 加载
   
 ● DrawingUtils:绘图
-   ColorUtils:颜色
+   ColorUtils:颜色
     ┗ ColorStyle.cs             // 颜色
     
+  ┗ ImageUtils:图片
+    ┣ IMG.cs                    // 图片处理
+    ┗ ScreenCapture.cs          // 屏幕截图
+    
 ● FormUtils:窗体工具
   ┗ FormManTool.cs              // 窗口管理器
 
@@ -147,25 +155,34 @@ Fork 是平时在做 C# 项目的时候,收藏整理的一个工具项目,
     ┗ XmlTool.cs                // (暂无)
 
 ● LogUtils:日志
-  ┣ SimpleLogUtils
+  ┣ SimpleLogUtils:简单日志
     ┣ Log.cs                    // 日志工具
     ┣ LogLevel.cs               // 日志分级
     ┣ LogModel.cs               // 日志模型
     ┗ LogType.cs                // 日志分类
   
-  ┣ StatusLogUtils
+  ┣ StatusLogUtils:状态日志
     ┣ StatusLog.cs              // 状态日志工具
     ┗ StatusLogModel.cs         // 状态日志模型
     
 ● NetUtils:网络
+  ┣ NetAddressUtils:网络地址
+    ┗ DNSTool.cs                // DNS地址
+    
+  ┣ WifiManUtils:WIFI控制
+    ┣ Wlan.cs                   // WLAN API和参数
+    ┣ WlanClient.cs             // WLAN 实例
+    ┗ WlanTool.cs               // 简化的WLAN工具
+    
   ┣ IPFormatter.cs              // IP 格式化检查
   ┣ MacFormatter.cs             // MAC 格式化检查
   ┣ NetConnectionInfo.cs        // 网络连接信息
   ┣ NetFlowService.cs           // 网络流量监控
   ┣ NetflowTool.cs              // 网络流量监控
   ┣ NetPacketTool.cs            // 网络数据包工具
-  ┣ NetProcessInfo.cs           // 联网进程信息
-  ┣ NetProcessInfo.cs           // 联网进程读取
+  ┣ NetProcessInfo.cs           // 联网连接信息
+  ┣ NetProcessTool.cs           // 联网连接读取
+  ┣ NetcardControlTool.cs       // 网卡适配器操作
   ┗ PingTool.cs                 // 网络连通
   
 ● ProcessUtils:进程
@@ -201,6 +218,10 @@ Fork 是平时在做 C# 项目的时候,收藏整理的一个工具项目,
   ┗ VersionTool.cs              // 版本处理
   
 ● WindowsUtils:系统
+  ┣ AdminUtils:管理员
+    ┣ AdminTool.cs              // 管理员账号
+    ┗ WindowsAccountModel.cs    // 系统账号模型
+    
   ┣ APIUtils:API
     ┣ ApplicationAPI.cs         // 应用程序:可唤起指定进程的窗口
     ┣ ExplorerAPI.cs            // Explorer:可打开指定文件夹窗口
@@ -218,7 +239,12 @@ Fork 是平时在做 C# 项目的时候,收藏整理的一个工具项目,
     
   ┣ CMDUtils:API
     ┣ CMDNetstatTool.cs         // CMD网络指令包装
-    ┗ CMDProcessTool.cs         // CMD进程启动工具
+    ┣ CMDProcessTool.cs         // CMD进程启动工具
+    ┗ CMDServiceTool.cs         // CMD系统服务工具
+    
+  ┣ ConsoleUtils:控制台输出
+    ┣ Cons.cs                   // 控制台输出工具
+    ┗ ConsColorMode.cs          // 控制台颜色模式
     
   ┣ HookUtils:Hook
     ┣ KeyboardHook.cs           // 键盘钩子
@@ -228,6 +254,8 @@ Fork 是平时在做 C# 项目的时候,收藏整理的一个工具项目,
   ┣ InfoUtils:信息
     ┣ ComputerInfoTool.cs       // 计算机信息
     ┣ ComputerStatusTool.cs     // 计算机性能计数器
+    ┣ ComputerType.cs           // 计算机类型
+    ┣ ComputerTypeTool.cs       // 获取计算机类型
     ┣ NetcardInfoTool.cs        // 网卡信息
     ┣ OSInfoTool.cs             // 操作系统
     ┣ OSName.cs                 // 操作系统清单
@@ -245,23 +273,23 @@ Fork 是平时在做 C# 项目的时候,收藏整理的一个工具项目,
     ┗ ShortcutTool.cs           // 操作快捷方式
 ```
 
-### Azylee.Core.Plus
+### Azylee.Json
 依赖:Azylee.Core
 
-> - 为其他引用提供扩展
-> - 可能引用其他dll文件
+> - 完善的 Json 扩展处理方法
+> - 引用 Newtonsoft.Json 库做基础操作
 
 ```
-● DataUtils:数据处理
-  ┗ JsonUtils
-    ┣ ConvertJson.cs            // 程序启动器
-    ┗ JsonTool.cs               // 开机启动项
+● Jsons
+  ┣ ConvertJson.cs              // Json 原生转换
+  ┣ Json.cs                     // Json 快捷处理工具
+  ┗ JsonFormat.cs               // Json 显示格式化
 ```
 
 ### Azylee.Update
-依赖:Azylee.Core、Azylee.Core.Plus
+依赖:Azylee.Core、Azylee.Json、Azylee.YeahWeb
 
-> - 为exe程序提供升级方案
+> - 为exe程序提供升级支持
 
 ```
 ● UpdateUtils:数据处理
@@ -270,27 +298,61 @@ Fork 是平时在做 C# 项目的时候,收藏整理的一个工具项目,
 ```
 
 ### Azylee.YeahWeb
-依赖:Azylee.Core、Azylee.Core.Plus
+依赖:Azylee.Core、Azylee.Json
 
 > - 提供网络工具
 
 ```
 ● BaiDuWebAPI:面向百度开发
+  ┣ GPSAPI:GPS API
+    ┣ GPSConverter.cs           // 设备GPS定位转换为BaiduGPS信息
+    ┣ GPSInfoModel.cs           // GPS 模型
+    ┣ GPSInfoTool.cs            // GPS 获取信息
+    ┣ GPSInfoWebModel.cs        // GPS Web 返回信息
+    ┗ GPSPointWebModel.cs       // GPS 点模型
+    
   ┗ IPLocationAPI:IP定位
     ┣ IPLocationModel.cs        // 位置模型
-    ┣ IPLocationTool.cs         // 获取IP定位
-    ┗ IPLocationWebModel.cs     // API返回位置模型
+    ┣ IPLocationTool.cs         // 获取 IP 定位
+    ┗ IPLocationWebModel.cs     // API 返回位置模型
+  
+● EmailUtils:邮件
+  ┗ EmailTool.cs                // 邮件工具
   
 ● FTPUtils:FTP工具
   ┗ FTPTool.cs                  // FTP工具
   
 ● HttpUtils:Http工具
-  ┣ HttpTool.cs                 // 常规Http工具
-  ┗ HttpToolPlus.cs             // 增强Http工具(如携带Cookie)
-```
+  ┣ MethodUtils:方法
+    ┣ ExtendUtils:扩展
+      ┗ HeaderTool.cs           // 请求头处理
+      
+    ┣ GetUtils:GET
+      ┗ GetToolPlus.cs          // 增强 Get 工具
+    
+    ┗ PostUtils:POST
+      ┗ PostToolPlus.cs         // 增强 Post 工具
+    
+  ┣ Models:模型
+    ┣ HttpContentTypes.cs       // 内容类型
+    ┣ HttpMethodTypes.cs        // 方法类型
+    ┗ UserAgents.cs             // Agent
 
-### Azylee.WinformMan
-——暂无
+  ┣ HttpTool.cs                 // 常规 Http 工具
+  ┗ HttpToolPlus.cs             // 增强 Http 工具(如携带 Cookie)
+  
+● SocketUtils:Socket工具
+  ┣ TcpUtils:Tcp工具
+    ┣ TcpClientDictionary.cs    // 已连接终端
+    ┣ TcpDataConverter.cs       // 通信模型转换
+    ┣ TcpDataModel.cs           // Tcp 传输数据模型
+    ┣ TcpDelegate.cs            // Tcp 工具 委托声明
+    ┣ TcppClient.cs             // Tcp 客户端
+    ┣ TcppServer.cs             // Tcp 服务端
+    ┗ TcpStreamHelper.cs        // Tcp 流数据处理辅助类
+    
+  ┗ SocketTool.cs               // Socket工具
+```
 
 ### Azylee.WinformSkin
 ——暂无
@@ -298,8 +360,8 @@ Fork 是平时在做 C# 项目的时候,收藏整理的一个工具项目,
 ---
 
 # 关于作者
-- Email:[inc@live.cn](mailto:inc@live.cn),[yuzhyn@163.com](mailto:yuzhyn@163.com)
+- Email:[yuzhyn@outlook.com](mailto:yuzhyn@outlook.com),[yuzhyn@163.com](mailto:yuzhyn@163.com)
 - 在使用过程中,遇到问题可以给我发邮件,希望能帮助到你,更期待你的建议 ~~~
 
 
-![image](https://raw.githubusercontent.com/yuzhengyang/Fork/master/Documents/QRCode/WeiXinQRCodeMini.jpg)
+![image](https://raw.githubusercontent.com/yuzhengyang/Fork/master/Documents/QRCode/WeiXinQRCodeMini.jpg)