细节优化,代码优化,v1.5.3

This commit is contained in:
dathlin
2017-10-02 11:04:37 +08:00
parent 9674029e3e
commit e8da50fda8
6 changed files with 20 additions and 50 deletions

View File

@@ -183,7 +183,6 @@ namespace ClientsLibrary
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.MaximizeBox = false; this.MaximizeBox = false;
this.Name = "FormRegisterAccount"; this.Name = "FormRegisterAccount";
this.ShowIcon = false;
this.ShowInTaskbar = false; this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "注册新账户"; this.Text = "注册新账户";

View File

@@ -28,8 +28,6 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.userButton16 = new HslCommunication.Controls.UserButton();
this.userButton17 = new HslCommunication.Controls.UserButton();
this.userButton15 = new HslCommunication.Controls.UserButton(); this.userButton15 = new HslCommunication.Controls.UserButton();
this.userButton14 = new HslCommunication.Controls.UserButton(); this.userButton14 = new HslCommunication.Controls.UserButton();
this.userButton12 = new HslCommunication.Controls.UserButton(); this.userButton12 = new HslCommunication.Controls.UserButton();
@@ -49,36 +47,6 @@
this.logNetAnalysisControl1 = new HslCommunication.LogNet.LogNetAnalysisControl(); this.logNetAnalysisControl1 = new HslCommunication.LogNet.LogNetAnalysisControl();
this.SuspendLayout(); this.SuspendLayout();
// //
// userButton16
//
this.userButton16.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.userButton16.BackColor = System.Drawing.Color.Transparent;
this.userButton16.CustomerInformation = "";
this.userButton16.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
this.userButton16.Font = new System.Drawing.Font("微软雅黑", 9F);
this.userButton16.Location = new System.Drawing.Point(905, 344);
this.userButton16.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.userButton16.Name = "userButton16";
this.userButton16.Size = new System.Drawing.Size(103, 26);
this.userButton16.TabIndex = 46;
this.userButton16.UIText = "文件日志清空";
this.userButton16.Click += new System.EventHandler(this.userButton16_Click);
//
// userButton17
//
this.userButton17.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.userButton17.BackColor = System.Drawing.Color.Transparent;
this.userButton17.CustomerInformation = "";
this.userButton17.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
this.userButton17.Font = new System.Drawing.Font("微软雅黑", 9F);
this.userButton17.Location = new System.Drawing.Point(797, 344);
this.userButton17.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.userButton17.Name = "userButton17";
this.userButton17.Size = new System.Drawing.Size(103, 26);
this.userButton17.TabIndex = 45;
this.userButton17.UIText = "文件日志查看";
this.userButton17.Click += new System.EventHandler(this.userButton17_Click);
//
// userButton15 // userButton15
// //
this.userButton15.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.userButton15.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@@ -181,7 +149,7 @@
this.userButton8.Name = "userButton8"; this.userButton8.Name = "userButton8";
this.userButton8.Size = new System.Drawing.Size(103, 26); this.userButton8.Size = new System.Drawing.Size(103, 26);
this.userButton8.TabIndex = 38; this.userButton8.TabIndex = 38;
this.userButton8.UIText = "共享文件日志清空"; this.userButton8.UIText = "文件日志清空";
this.userButton8.Click += new System.EventHandler(this.userButton8_Click); this.userButton8.Click += new System.EventHandler(this.userButton8_Click);
// //
// userButton9 // userButton9
@@ -196,7 +164,7 @@
this.userButton9.Name = "userButton9"; this.userButton9.Name = "userButton9";
this.userButton9.Size = new System.Drawing.Size(103, 26); this.userButton9.Size = new System.Drawing.Size(103, 26);
this.userButton9.TabIndex = 37; this.userButton9.TabIndex = 37;
this.userButton9.UIText = "共享文件日志查看"; this.userButton9.UIText = "文件日志查看";
this.userButton9.Click += new System.EventHandler(this.userButton9_Click); this.userButton9.Click += new System.EventHandler(this.userButton9_Click);
// //
// userButton6 // userButton6
@@ -335,8 +303,6 @@
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1023, 713); this.ClientSize = new System.Drawing.Size(1023, 713);
this.Controls.Add(this.logNetAnalysisControl1); this.Controls.Add(this.logNetAnalysisControl1);
this.Controls.Add(this.userButton16);
this.Controls.Add(this.userButton17);
this.Controls.Add(this.userButton15); this.Controls.Add(this.userButton15);
this.Controls.Add(this.userButton14); this.Controls.Add(this.userButton14);
this.Controls.Add(this.userButton12); this.Controls.Add(this.userButton12);
@@ -363,9 +329,6 @@
} }
#endregion #endregion
private HslCommunication.Controls.UserButton userButton16;
private HslCommunication.Controls.UserButton userButton17;
private HslCommunication.Controls.UserButton userButton15; private HslCommunication.Controls.UserButton userButton15;
private HslCommunication.Controls.UserButton userButton14; private HslCommunication.Controls.UserButton userButton14;
private HslCommunication.Controls.UserButton userButton12; private HslCommunication.Controls.UserButton userButton12;

View File

@@ -129,15 +129,15 @@ namespace ClientsLibrary
{ {
ClearFromServer(CommonHeadCode.SimplifyHeadCode.); ClearFromServer(CommonHeadCode.SimplifyHeadCode.);
} }
private void userButton17_Click(object sender, EventArgs e) //private void userButton17_Click(object sender, EventArgs e)
{ //{
ReadFromServer(CommonHeadCode.SimplifyHeadCode.); // ReadFromServer(CommonHeadCode.SimplifyHeadCode.头像日志查看);
} //}
private void userButton16_Click(object sender, EventArgs e) //private void userButton16_Click(object sender, EventArgs e)
{ //{
ClearFromServer(CommonHeadCode.SimplifyHeadCode.); // ClearFromServer(CommonHeadCode.SimplifyHeadCode.头像日志清空);
} //}
private void logNetAnalysisControl1_Load(object sender, EventArgs e) private void logNetAnalysisControl1_Load(object sender, EventArgs e)
{ {

View File

@@ -44,7 +44,7 @@ namespace CommonLibrary
* *
**************************************************************************/ **************************************************************************/
SoftBasic.FrameworkVersion = new SystemVersion("1.5.2"); SoftBasic.FrameworkVersion = new SystemVersion("1.5.3");
} }

View File

@@ -43,6 +43,9 @@ namespace CommonLibrary
* *
*******************************************************************************************/ *******************************************************************************************/
#region 1.1.X
public static NetHandle { get; } = new NetHandle(1, 1, 00001); public static NetHandle { get; } = new NetHandle(1, 1, 00001);
public static NetHandle { get; } = new NetHandle(1, 1, 00002); public static NetHandle { get; } = new NetHandle(1, 1, 00002);
public static NetHandle { get; } = new NetHandle(1, 1, 00003); public static NetHandle { get; } = new NetHandle(1, 1, 00003);
@@ -67,6 +70,7 @@ namespace CommonLibrary
public static NetHandle { get; } = new NetHandle(1, 1, 00022); public static NetHandle { get; } = new NetHandle(1, 1, 00022);
#endregion
/******************************************************************************************* /*******************************************************************************************
@@ -75,6 +79,9 @@ namespace CommonLibrary
* *
*******************************************************************************************/ *******************************************************************************************/
#region 1.2.X
public static NetHandle { get; } = new NetHandle(1, 2, 00001);//1.2.开头的是日志请求和清空 public static NetHandle { get; } = new NetHandle(1, 2, 00001);//1.2.开头的是日志请求和清空
public static NetHandle { get; } = new NetHandle(1, 2, 00002); public static NetHandle { get; } = new NetHandle(1, 2, 00002);
@@ -96,6 +103,7 @@ namespace CommonLibrary
public static NetHandle { get; } = new NetHandle(1, 2, 00018); public static NetHandle { get; } = new NetHandle(1, 2, 00018);
#endregion
/************************************************************************************** /**************************************************************************************

View File

@@ -536,7 +536,7 @@ namespace 软件系统服务端模版
if (!UserServer.ServerSettings.AllowLoginWhenFramewordVersionNotCheck) if (!UserServer.ServerSettings.AllowLoginWhenFramewordVersionNotCheck)
{ {
SystemVersion sv = new SystemVersion(frameworkVersion); SystemVersion sv = new SystemVersion(frameworkVersion);
if (sv != SoftBasic.FrameworkVersion) if (sv < SoftBasic.FrameworkVersion)
{ {
account.LoginEnable = false; account.LoginEnable = false;
account.ForbidMessage = "框架版本检测失败,请更新"; account.ForbidMessage = "框架版本检测失败,请更新";