网络组件更新,用户暗号重新设计,个人信息界面文件上传支持拖拽
This commit is contained in:
@@ -42,8 +42,8 @@ namespace 软件系统客户端模版
|
||||
UserClient.JsonSettings.LoadByFile();//根据实际实际情况选中解密算法,默认采用DES加密解密算法
|
||||
|
||||
label_version.Text = "版本:" + UserClient.CurrentVersion.ToString();
|
||||
label2.Text = CommonLibrary.Resource.StringResouce.SoftName;
|
||||
label_copyright.Text = $"本软件著作权归{CommonLibrary.Resource.StringResouce.SoftCopyRight}所有";
|
||||
label2.Text = CommonLibrary.SoftResources.StringResouce.SoftName;
|
||||
label_copyright.Text = $"本软件著作权归{CommonLibrary.SoftResources.StringResouce.SoftCopyRight}所有";
|
||||
}
|
||||
|
||||
private void FormLogin_Shown(object sender, EventArgs e)
|
||||
@@ -51,7 +51,7 @@ namespace 软件系统客户端模版
|
||||
IsWindowShow = true;
|
||||
|
||||
//如果七天未登录,账户密码清除
|
||||
if ((DateTime.Now - UserClient.JsonSettings.LoginTime).TotalDays < 7)
|
||||
if ((DateTime.Now - UserClient.JsonSettings.LoginTime).TotalDays < UserClient.JsonSettings.PasswordOverdueDays)
|
||||
{
|
||||
//加载数据
|
||||
textBox_userName.Text = UserClient.JsonSettings.LoginName ?? "";
|
||||
@@ -94,7 +94,6 @@ namespace 软件系统客户端模版
|
||||
|
||||
private void userButton_login_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
label_status.Visible = true;
|
||||
//验证输入
|
||||
if (string.IsNullOrEmpty(textBox_userName.Text))
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace 软件系统客户端模版
|
||||
//状态栏设置
|
||||
toolStripStatusLabel_time.Alignment = ToolStripItemAlignment.Right;
|
||||
statusStrip1.LayoutStyle = ToolStripLayoutStyle.StackWithOverflow;
|
||||
toolStripStatusLabel1.Text = $"本软件著作权归{Resource.StringResouce.SoftCopyRight}所有";
|
||||
toolStripStatusLabel1.Text = $"本软件著作权归{SoftResources.StringResouce.SoftCopyRight}所有";
|
||||
|
||||
//绑定事件,仅执行一次,不能放到show方法里
|
||||
net_socket_client.MessageAlerts += Net_socket_client_MessageAlerts;
|
||||
@@ -163,8 +163,8 @@ namespace 软件系统客户端模版
|
||||
|
||||
private void 关于本软件ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
using (FormAbout fa = new FormAbout(Resource.StringResouce.SoftName,
|
||||
UserClient.CurrentVersion, 2017, Resource.StringResouce.SoftCopyRight))
|
||||
using (FormAbout fa = new FormAbout(SoftResources.StringResouce.SoftName,
|
||||
UserClient.CurrentVersion, 2017, SoftResources.StringResouce.SoftCopyRight))
|
||||
{
|
||||
fa.ShowDialog();
|
||||
}
|
||||
@@ -356,7 +356,7 @@ namespace 软件系统客户端模版
|
||||
/// <param name="state">网络连接对象</param>
|
||||
/// <param name="customer">用户自定义的指令头,用来区分数据用途</param>
|
||||
/// <param name="data">数据</param>
|
||||
private void Net_socket_client_AcceptString(AsyncStateOne state, int customer, string data)
|
||||
private void Net_socket_client_AcceptString(AsyncStateOne state, NetHandle customer, string data)
|
||||
{
|
||||
if (customer == CommonHeadCode.MultiNetHeadCode.弹窗新消息)
|
||||
{
|
||||
@@ -422,7 +422,7 @@ namespace 软件系统客户端模版
|
||||
}
|
||||
}
|
||||
|
||||
private void Net_socket_client_AcceptByte(AsyncStateOne object1, int customer, byte[] object2)
|
||||
private void Net_socket_client_AcceptByte(AsyncStateOne object1, NetHandle customer, byte[] object2)
|
||||
{
|
||||
//接收到服务器发来的字节数据
|
||||
if (IsHandleCreated) Invoke(new Action(() =>
|
||||
|
||||
Reference in New Issue
Block a user