更新NuGet包到4.0.0,并完成相关的修改适配工作,v1.7.8

This commit is contained in:
dathlin
2017-11-22 14:18:35 +08:00
parent b1f123366d
commit 9c4f98a66f
38 changed files with 62 additions and 65 deletions

View File

@@ -23,7 +23,7 @@ namespace ClientsLibrary
public partial class FormDownloading : Form
{
public FormDownloading(int customer,Action<OperateResultString> action)
public FormDownloading(int customer,Action<OperateResult<string>> action)
{
InitializeComponent();
@@ -89,13 +89,13 @@ namespace ClientsLibrary
private int net_cmd = 0;
private Action<OperateResultString> DealWithResult = null;
private Action<OperateResult<string>> DealWithResult = null;
private void ThreadRequestServer()
{
//后台请求数据
System.Threading.Thread.Sleep(100);
OperateResultString result = UserClient.Net_simplify_client.ReadFromServer(net_cmd);
OperateResult<string> result = UserClient.Net_simplify_client.ReadFromServer(net_cmd);
Invoke(new Action(() =>
{
DealWithResult(result);