代码调整,重构,v1.6.10

This commit is contained in:
dathlin
2017-10-11 22:12:20 +08:00
parent 1a85ef8588
commit 0a7ace0ca7
17 changed files with 130 additions and 63 deletions

View File

@@ -320,7 +320,6 @@
this.Controls.Add(this.userButton1);
this.Controls.Add(this.userButton_login);
this.Name = "FormLogView";
this.ShowIcon = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "日志查看器";
this.Load += new System.EventHandler(this.FormLogView_Load);

View File

@@ -14,6 +14,8 @@ namespace ClientsLibrary
{
public partial class FormLogView : Form
{
#region Constructor
public FormLogView()
{
InitializeComponent();
@@ -23,13 +25,26 @@ namespace ClientsLibrary
net_simplify_client = UserClient.Net_simplify_client;
}
#endregion
#region Window Load
private void FormLogView_Load(object sender, EventArgs e)
{
}
#endregion
#region Private Member
private NetSimplifyClient net_simplify_client = null;
#endregion
#region Button Click
private void ReadFromServer(int head_code)
{
OperateResultString result = net_simplify_client.ReadFromServer(head_code);
@@ -129,19 +144,8 @@ namespace ClientsLibrary
{
ClearFromServer(CommonHeadCode.SimplifyHeadCode.);
}
//private void userButton17_Click(object sender, EventArgs e)
//{
// ReadFromServer(CommonHeadCode.SimplifyHeadCode.头像日志查看);
//}
//private void userButton16_Click(object sender, EventArgs e)
//{
// ClearFromServer(CommonHeadCode.SimplifyHeadCode.头像日志清空);
//}
#endregion
private void logNetAnalysisControl1_Load(object sender, EventArgs e)
{
}
}
}

View File

@@ -14,17 +14,20 @@ using ClientsLibrary.FileSupport;
namespace ClientsLibrary
{
//=====================================================================================
//
// 用途: 本窗口用于实现对本系统的客户端进行全面的远程更新的操作。
// 第一步: 先将新版本的所有客户端传送到服务器端进行覆盖。
// 第二步: 再将版本号传送到服务器进行更新,这样所有的客户端登录后就会自动更新新的版本了
//
//=====================================================================================
/************************************************************************************************
*
* 用途: 本窗口用于实现对本系统的客户端进行全面的远程更新的操作。
* 第一步: 先将新版本的所有客户端传送到服务器端进行覆盖。
* 第二步: 再将版本号传送到服务器进行更新,这样所有的客户端登录后就会自动更新新的版本了
*
**************************************************************************************************/
public partial class FormUpdateRemote : Form
{
#region Constructor
public FormUpdateRemote()
{
InitializeComponent();
@@ -32,6 +35,11 @@ namespace ClientsLibrary
Icon = UserClient.GetFormWindowIcon();
}
#endregion
#region Select File And Upload
private void userButton_file_Click(object sender, EventArgs e)
{
using (OpenFileDialog ofd = new OpenFileDialog())
@@ -53,6 +61,12 @@ namespace ClientsLibrary
}
}
#endregion
#region Update Version
private void userButton_version_Click(object sender, EventArgs e)
{
OperateResultString result = UserClient.Net_simplify_client.ReadFromServer(CommonHeadCode.SimplifyHeadCode., textBox1.Text);
@@ -66,9 +80,16 @@ namespace ClientsLibrary
}
}
#endregion
#region Form Load
private void FormUpdateRemote_Load(object sender, EventArgs e)
{
textBox1.Text = UserClient.CurrentVersion.ToString();
}
#endregion
}
}