wpf下载异常修复,日志界面UI调整,v1.4.5

This commit is contained in:
dathlin
2017-09-21 12:20:16 +08:00
parent 158d2d91e0
commit f9d739f5cc
3 changed files with 15 additions and 24 deletions

View File

@@ -61,7 +61,7 @@
this.userButton16.Name = "userButton16"; this.userButton16.Name = "userButton16";
this.userButton16.Size = new System.Drawing.Size(103, 26); this.userButton16.Size = new System.Drawing.Size(103, 26);
this.userButton16.TabIndex = 46; this.userButton16.TabIndex = 46;
this.userButton16.UIText = "头像日志清空"; this.userButton16.UIText = "文件日志清空";
this.userButton16.Click += new System.EventHandler(this.userButton16_Click); this.userButton16.Click += new System.EventHandler(this.userButton16_Click);
// //
// userButton17 // userButton17
@@ -76,7 +76,7 @@
this.userButton17.Name = "userButton17"; this.userButton17.Name = "userButton17";
this.userButton17.Size = new System.Drawing.Size(103, 26); this.userButton17.Size = new System.Drawing.Size(103, 26);
this.userButton17.TabIndex = 45; this.userButton17.TabIndex = 45;
this.userButton17.UIText = "头像日志查看"; this.userButton17.UIText = "文件日志查看";
this.userButton17.Click += new System.EventHandler(this.userButton17_Click); this.userButton17.Click += new System.EventHandler(this.userButton17_Click);
// //
// userButton15 // userButton15

View File

@@ -33,29 +33,16 @@ namespace CommonLibrary
/************************************************************************** /**************************************************************************
* *
* 时间2017年7月7日 14:11:35 版本号1.1.0 * 说明:以下是大版本号的发布日期
*
**************************************************************************/
/**************************************************************************
* *
* 时间2017年7月7日 14:11:35 版本号1.1.0
* 时间2017年7月18日 15:10:18 版本号1.2.0 * 时间2017年7月18日 15:10:18 版本号1.2.0
* * 时间2017年9月3日 13:27:52 版本号1.3.0
**************************************************************************/
/**************************************************************************
*
* 时间2017年9月3日 13:27:52 版本号1.3.0
*
**************************************************************************/
/**************************************************************************
*
* 时间2017年9月19日 22:06:27 版本号1.4.0 * 时间2017年9月19日 22:06:27 版本号1.4.0
* *
**************************************************************************/ **************************************************************************/
SoftBasic.FrameworkVersion = new SystemVersion("1.4.4"); SoftBasic.FrameworkVersion = new SystemVersion("1.4.5");
} }
@@ -69,7 +56,8 @@ namespace CommonLibrary
/// <summary> /// <summary>
/// 用于整个网络服务交互的身份令牌,可有效的防止来自网络的攻击,重新生成令牌后就无法更改,否则不支持自动升级 /// 用于整个网络服务交互的身份令牌,可有效的防止来自网络的攻击,其他系统的恶意的连接
/// 重新生成令牌后就无法更改,否则不支持自动升级
/// </summary> /// </summary>
public static Guid KeyToken { get; set; } = new Guid("1275BB9A-14B2-4A96-9673-B0AF0463D474"); public static Guid KeyToken { get; set; } = new Guid("1275BB9A-14B2-4A96-9673-B0AF0463D474");

View File

@@ -34,7 +34,7 @@ namespace 软件系统客户端Wpf.Views
{ {
KeyToken = CommonLibrary.CommonProtocol.KeyToken, KeyToken = CommonLibrary.CommonProtocol.KeyToken,
LogNet = UserClient.LogNet, LogNet = UserClient.LogNet,
ServerIpEndPoint =new IPEndPoint(IPAddress.Parse(UserClient.ServerIp),CommonLibrary.CommonProtocol.Port_Advanced_File_Server) ServerIpEndPoint =new IPEndPoint(IPAddress.Parse(UserClient.ServerIp),CommonLibrary.CommonProtocol.Port_Share_File)
}; };
} }
@@ -128,14 +128,17 @@ namespace 软件系统客户端Wpf.Views
save_file_name += "\\" + Hufile.FileName; save_file_name += "\\" + Hufile.FileName;
OperateResult result = fileClient.DownloadFile(Hufile.FileName, OperateResult result = fileClient.DownloadFile(
Hufile.FileName,
(m, n) => (m, n) =>
{ {
Dispatcher.Invoke(new Action(() => Dispatcher.Invoke(new Action(() =>
{ {
FileDownloadProgress.Value = m * 100 / n; FileDownloadProgress.Value = m * 100 / n;
})); }));
}, save_file_name); },
save_file_name
);
Dispatcher.Invoke(new Action(() => Dispatcher.Invoke(new Action(() =>
{ {