Commit 590bfc72 authored by tr's avatar tr

1、图片分离下载功能优化;输入法(TSF)问题后续研究

parent 68ad2b3c
......@@ -25,3 +25,4 @@ bin
/AppHome/UpdateExecuter.pdb
/AppHome/UpdateExecuter.exe
/AppHome/db.json
/packages/TSF.TypeLib.1.0.1.0
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="UpdateTime" value="2021-07-16 10:51:22.823" />
</appSettings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup>
......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//
using TSF.TypeLib;
namespace Tools.MyUtils
{
public class InputtingService
{
public void ddd()
{
//TFThreadMgr
}
}
}
......@@ -52,7 +52,7 @@ namespace Tools.MyUtils
public static byte[] Download(string md5, bool enableCachedToDisk = true)
{
var http = GetHttpClient(md5, enableCachedToDisk, null);
return http.Download();
return http.IsExists() ? http.Download() : null;
}
#region 私有方法
......@@ -306,7 +306,7 @@ namespace Tools.MyUtils
}
/// <summary>
/// 上传前预备工作
/// 文件是否存在
/// </summary>
/// <returns></returns>
public bool IsExists()
......
......@@ -72,6 +72,9 @@
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="TSF.TypeLib, Version=1.0.1.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\TSF.TypeLib.1.0.1.0\lib\portable-windows8+net45\TSF.TypeLib.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="MyCommon\controls\MyTreeView.cs">
......@@ -103,6 +106,7 @@
<Compile Include="MyData\DBHelper.cs" />
<Compile Include="MyData\SqlHelper.cs" />
<Compile Include="MyUtils\DrawHelper.cs" />
<Compile Include="MyUtils\InputtingService.cs" />
<Compile Include="MyUtils\SegPicture.cs" />
<Compile Include="UI\Popups\wSelectTemplates.cs">
<SubType>Form</SubType>
......
......@@ -3,4 +3,5 @@
<package id="NPOI" version="2.5.1" targetFramework="net461" />
<package id="Portable.BouncyCastle" version="1.8.6" targetFramework="net461" />
<package id="SharpZipLib" version="1.3.2" targetFramework="net461" />
<package id="TSF.TypeLib" version="1.0.1.0" targetFramework="net48" />
</packages>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment