修复客户端时间不同不显示的BUG。
This commit is contained in:
@@ -85,6 +85,14 @@ namespace CommonLibrary
|
||||
/// 代号描述的文本
|
||||
/// </summary>
|
||||
public string Description { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// 过去描述
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override string ToString()
|
||||
{
|
||||
return Description;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user