初步实现一个共享文件中心的功能,等待继续完善

This commit is contained in:
HSL
2017-04-06 16:18:46 +08:00
parent 66ef18f9a4
commit c399a7a8d6
12 changed files with 1177 additions and 48 deletions

View File

@@ -277,15 +277,24 @@ namespace 软件系统客户端模版
fpp.Show();
}));
}
else if (head_code == CommonHeadCode.MultiNetHeadCode.)
else if (head_code == CommonHeadCode.MultiNetHeadCode.)
{
//收到服务器更新时间
UserClient.DateTimeServer = Convert.ToDateTime(object2.Substring(4));
//收到服务器的数据
JObject json = JObject.Parse(object2.Substring(4));
UserClient.DateTimeServer = json["Time"].ToObject<DateTime>();
label_file_count.Text = json["FileCount"].ToObject<int>().ToString();
if (IsHandleCreated) Invoke(new Action(() =>
{
toolStripStatusLabel_time.Text = UserClient.DateTimeServer.ToString("yyyy-MM-dd HH:mm");
}));
}
else if(head_code==CommonHeadCode.MultiNetHeadCode.)
{
if (IsHandleCreated) Invoke(new Action(() =>
{
label_file_count.Text = object2.Substring(4);
}));
}
}
private void Net_socket_client_AcceptByte(HuTcpState object1, byte[] object2)