修复客户端时间不同不显示的BUG。

This commit is contained in:
hsl
2017-04-08 16:03:52 +08:00
parent f772624f57
commit 02d1d2411e
2 changed files with 17 additions and 1 deletions

View File

@@ -85,6 +85,14 @@ namespace CommonLibrary
/// 代号描述的文本
/// </summary>
public string Description { get; set; } = string.Empty;
/// <summary>
/// 过去描述
/// </summary>
/// <returns></returns>
public override string ToString()
{
return Description;
}
}
}

View File

@@ -289,13 +289,21 @@ namespace 软件系统客户端模版
label_file_count.Text = json["FileCount"].ToObject<int>().ToString();
}));
}
else if(head_code==CommonHeadCode.MultiNetHeadCode.)
else if (head_code == CommonHeadCode.MultiNetHeadCode.)
{
if (IsHandleCreated) Invoke(new Action(() =>
{
label_file_count.Text = object2.Substring(4);
}));
}
else if (head_code == CommonHeadCode.MultiNetHeadCode.)
{
UserClient.DateTimeServer = Convert.ToDateTime(object2.Substring(4));
if (IsHandleCreated) Invoke(new Action(() =>
{
toolStripStatusLabel_time.Text = UserClient.DateTimeServer.ToString("yyyy-MM-dd HH:mm");
}));
}
}
private void Net_socket_client_AcceptByte(HuTcpState object1, byte[] object2)