服务器新增推送网络,移除开发中心功能。
This commit is contained in:
@@ -10,6 +10,19 @@ namespace CommonLibrary.DataBaseSupport
|
||||
/// </summary>
|
||||
public class SqlServerSupport
|
||||
{
|
||||
#region Constructor
|
||||
|
||||
/// <summary>
|
||||
/// 实例化一个默认的构造函数
|
||||
/// </summary>
|
||||
public SqlServerSupport( )
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 数据库的连接字符串,该信息应来源于服务器保存的连接字符串
|
||||
/// </summary>
|
||||
|
||||
@@ -40,11 +40,12 @@ namespace CommonLibrary
|
||||
* 时间:2017年10月1日 16:00:13 版本号:1.5.0
|
||||
* 时间:2017年10月6日 19:23:09 版本号:1.6.0
|
||||
* 时间:2017年10月21日 11:55:41 版本号:1.7.0
|
||||
* 时间:2018年5月8日 11:09:16 版本号:1.8.0
|
||||
*
|
||||
**************************************************************************/
|
||||
|
||||
|
||||
SoftBasic.FrameworkVersion = new SystemVersion("1.7.14");
|
||||
SoftBasic.FrameworkVersion = new SystemVersion("1.8.0");
|
||||
|
||||
}
|
||||
|
||||
@@ -53,6 +54,7 @@ namespace CommonLibrary
|
||||
/************************************************************************************************
|
||||
*
|
||||
* 注意:您在准备二次开发时,应该重新生成一个自己的GUID码
|
||||
* Note: When you are preparing for secondary development, you should regenerate your own GUID code
|
||||
*
|
||||
************************************************************************************************/
|
||||
|
||||
@@ -77,27 +79,36 @@ namespace CommonLibrary
|
||||
/// 主网络端口,此处随机定义了一个数据
|
||||
/// </summary>
|
||||
public static int Port_Main_Net { get; } = 17652;
|
||||
|
||||
/// <summary>
|
||||
/// 同步网络访问的端口,此处随机定义了一个数据
|
||||
/// </summary>
|
||||
public static int Port_Second_Net { get; } = 14568;
|
||||
|
||||
/// <summary>
|
||||
/// 用于软件系统更新的端口,此处随机定义了一个数据
|
||||
/// </summary>
|
||||
public static int Port_Update_Net { get; } = 17538;
|
||||
|
||||
/// <summary>
|
||||
/// 共享文件的端口号
|
||||
/// </summary>
|
||||
public static int Port_Ultimate_File_Server { get; } = 34261;
|
||||
|
||||
/// <summary>
|
||||
/// 用于UDP传输的端口号
|
||||
/// </summary>
|
||||
public static int Port_Udp_Server { get; } = 32566;
|
||||
|
||||
/// <summary>
|
||||
/// 用于服务器版本更新的端口
|
||||
/// </summary>
|
||||
public static int Port_Advanced_File_Server { get; } = 24672;
|
||||
|
||||
/// <summary>
|
||||
/// 用于实时数据推送的消息网络
|
||||
/// </summary>
|
||||
public static int Port_Push_Server { get; } = 14574;
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -82,11 +82,6 @@
|
||||
<materialDesign:PackIcon Kind="Rotate3d" />
|
||||
</MenuItem.Icon>
|
||||
</MenuItem>
|
||||
<MenuItem Header="开发中心" x:Name="MenuItem开发中心" Click="MenuItem开发中心_Click">
|
||||
<MenuItem.Icon>
|
||||
<materialDesign:PackIcon Kind="Security" />
|
||||
</MenuItem.Icon>
|
||||
</MenuItem>
|
||||
</MenuItem>
|
||||
<MenuItem Header="_设置">
|
||||
<MenuItem.Icon>
|
||||
|
||||
@@ -141,7 +141,6 @@ namespace 软件系统客户端Wpf
|
||||
{
|
||||
MenuItem日志查看.IsEnabled = false;
|
||||
MenuItem远程更新.IsEnabled = false;
|
||||
MenuItem开发中心.IsEnabled = false;
|
||||
MenuItem系统配置.IsEnabled = false;
|
||||
}
|
||||
|
||||
@@ -272,31 +271,6 @@ namespace 软件系统客户端Wpf
|
||||
}
|
||||
}
|
||||
|
||||
private void MenuItem开发中心_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
using (FormSuper fs = new FormSuper(() =>
|
||||
{
|
||||
OperateResult<byte[]> result = UserClient.Net_simplify_client.ReadFromServer(CommonHeadCode.SimplifyHeadCode.性能计数, new byte[0]);
|
||||
//解析
|
||||
if (result.IsSuccess)
|
||||
{
|
||||
int[] data = new int[result.Content.Length / 4];
|
||||
for (int i = 0; i < data.Length; i++)
|
||||
{
|
||||
data[i] = BitConverter.ToInt32(result.Content, i * 4);
|
||||
}
|
||||
return data;
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
}))
|
||||
{
|
||||
fs.ShowDialog();
|
||||
}
|
||||
}
|
||||
|
||||
private void MenuItem密码更改_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
438
软件系统客户端模版/FormMainWindow.Designer.cs
generated
438
软件系统客户端模版/FormMainWindow.Designer.cs
generated
@@ -37,8 +37,30 @@
|
||||
this.toolStripStatusLabel4 = new System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.toolStripStatusLabel_time = new System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
|
||||
this.管理员ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.更改公告ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.账户管理ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.注册账号ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.消息发送ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.远程更新ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.日志查看ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.系统配置ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.设置ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.修改密码ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.留言板ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.我的信息ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.关于ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.关于本软件ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.更新日志ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.版本号说明ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.意见反馈ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.panel_right = new System.Windows.Forms.Panel();
|
||||
this.panel_right_mini = new System.Windows.Forms.Panel();
|
||||
this.pictureBox_right_file = new System.Windows.Forms.PictureBox();
|
||||
this.pictureBox_right_profile = new System.Windows.Forms.PictureBox();
|
||||
this.pictureBox_right_restore = new System.Windows.Forms.PictureBox();
|
||||
this.pictureBox_right_shrink = new System.Windows.Forms.PictureBox();
|
||||
this.netClientOnline1 = new ClientsLibrary.BasicSupport.NetClientOnline();
|
||||
this.label_file_count = new System.Windows.Forms.Label();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
@@ -62,39 +84,16 @@
|
||||
this.panel_main = new System.Windows.Forms.Panel();
|
||||
this.linkLabel_logout = new System.Windows.Forms.LinkLabel();
|
||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||
this.pictureBox_right_profile = new System.Windows.Forms.PictureBox();
|
||||
this.pictureBox_right_restore = new System.Windows.Forms.PictureBox();
|
||||
this.pictureBox_right_shrink = new System.Windows.Forms.PictureBox();
|
||||
this.管理员ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.更改公告ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.账户管理ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.注册账号ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.消息发送ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.远程更新ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.日志查看ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.开发中心ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.系统配置ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.设置ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.修改密码ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.留言板ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.我的信息ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.关于ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.关于本软件ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.更新日志ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.版本号说明ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.意见反馈ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.pictureBox_right_file = new System.Windows.Forms.PictureBox();
|
||||
this.statusStrip1.SuspendLayout();
|
||||
this.menuStrip1.SuspendLayout();
|
||||
this.panel_right.SuspendLayout();
|
||||
this.panel_right_mini.SuspendLayout();
|
||||
this.panel_left.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox_right_file)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox_right_profile)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox_right_restore)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox_right_shrink)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox_right_file)).BeginInit();
|
||||
this.panel_left.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// statusStrip1
|
||||
@@ -172,6 +171,148 @@
|
||||
this.menuStrip1.TabIndex = 1;
|
||||
this.menuStrip1.Text = "menuStrip1";
|
||||
//
|
||||
// 管理员ToolStripMenuItem
|
||||
//
|
||||
this.管理员ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.更改公告ToolStripMenuItem,
|
||||
this.账户管理ToolStripMenuItem,
|
||||
this.注册账号ToolStripMenuItem,
|
||||
this.消息发送ToolStripMenuItem,
|
||||
this.toolStripSeparator1,
|
||||
this.远程更新ToolStripMenuItem,
|
||||
this.日志查看ToolStripMenuItem,
|
||||
this.系统配置ToolStripMenuItem});
|
||||
this.管理员ToolStripMenuItem.Image = global::软件系统客户端模版.Properties.Resources.Team_32xLG;
|
||||
this.管理员ToolStripMenuItem.Name = "管理员ToolStripMenuItem";
|
||||
this.管理员ToolStripMenuItem.Size = new System.Drawing.Size(100, 31);
|
||||
this.管理员ToolStripMenuItem.Text = "管理员";
|
||||
//
|
||||
// 更改公告ToolStripMenuItem
|
||||
//
|
||||
this.更改公告ToolStripMenuItem.Name = "更改公告ToolStripMenuItem";
|
||||
this.更改公告ToolStripMenuItem.Size = new System.Drawing.Size(180, 32);
|
||||
this.更改公告ToolStripMenuItem.Text = "更改公告";
|
||||
this.更改公告ToolStripMenuItem.Click += new System.EventHandler(this.更改公告ToolStripMenuItem_Click);
|
||||
//
|
||||
// 账户管理ToolStripMenuItem
|
||||
//
|
||||
this.账户管理ToolStripMenuItem.Name = "账户管理ToolStripMenuItem";
|
||||
this.账户管理ToolStripMenuItem.Size = new System.Drawing.Size(180, 32);
|
||||
this.账户管理ToolStripMenuItem.Text = "账户管理";
|
||||
this.账户管理ToolStripMenuItem.Click += new System.EventHandler(this.账户管理ToolStripMenuItem_Click);
|
||||
//
|
||||
// 注册账号ToolStripMenuItem
|
||||
//
|
||||
this.注册账号ToolStripMenuItem.Name = "注册账号ToolStripMenuItem";
|
||||
this.注册账号ToolStripMenuItem.Size = new System.Drawing.Size(180, 32);
|
||||
this.注册账号ToolStripMenuItem.Text = "注册账号";
|
||||
this.注册账号ToolStripMenuItem.Click += new System.EventHandler(this.注册账号ToolStripMenuItem_Click);
|
||||
//
|
||||
// 消息发送ToolStripMenuItem
|
||||
//
|
||||
this.消息发送ToolStripMenuItem.Name = "消息发送ToolStripMenuItem";
|
||||
this.消息发送ToolStripMenuItem.Size = new System.Drawing.Size(180, 32);
|
||||
this.消息发送ToolStripMenuItem.Text = "消息发送";
|
||||
this.消息发送ToolStripMenuItem.Click += new System.EventHandler(this.消息发送ToolStripMenuItem_Click);
|
||||
//
|
||||
// toolStripSeparator1
|
||||
//
|
||||
this.toolStripSeparator1.Name = "toolStripSeparator1";
|
||||
this.toolStripSeparator1.Size = new System.Drawing.Size(177, 6);
|
||||
//
|
||||
// 远程更新ToolStripMenuItem
|
||||
//
|
||||
this.远程更新ToolStripMenuItem.Name = "远程更新ToolStripMenuItem";
|
||||
this.远程更新ToolStripMenuItem.Size = new System.Drawing.Size(180, 32);
|
||||
this.远程更新ToolStripMenuItem.Text = "远程更新";
|
||||
this.远程更新ToolStripMenuItem.Click += new System.EventHandler(this.远程更新ToolStripMenuItem_Click);
|
||||
//
|
||||
// 日志查看ToolStripMenuItem
|
||||
//
|
||||
this.日志查看ToolStripMenuItem.Name = "日志查看ToolStripMenuItem";
|
||||
this.日志查看ToolStripMenuItem.Size = new System.Drawing.Size(180, 32);
|
||||
this.日志查看ToolStripMenuItem.Text = "日志查看";
|
||||
this.日志查看ToolStripMenuItem.Click += new System.EventHandler(this.日志查看ToolStripMenuItem_Click);
|
||||
//
|
||||
// 系统配置ToolStripMenuItem
|
||||
//
|
||||
this.系统配置ToolStripMenuItem.Name = "系统配置ToolStripMenuItem";
|
||||
this.系统配置ToolStripMenuItem.Size = new System.Drawing.Size(180, 32);
|
||||
this.系统配置ToolStripMenuItem.Text = "系统配置";
|
||||
this.系统配置ToolStripMenuItem.Click += new System.EventHandler(this.系统配置ToolStripMenuItem_Click);
|
||||
//
|
||||
// 设置ToolStripMenuItem
|
||||
//
|
||||
this.设置ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.修改密码ToolStripMenuItem,
|
||||
this.留言板ToolStripMenuItem,
|
||||
this.我的信息ToolStripMenuItem});
|
||||
this.设置ToolStripMenuItem.Image = global::软件系统客户端模版.Properties.Resources.PickAxe_32xLG;
|
||||
this.设置ToolStripMenuItem.Name = "设置ToolStripMenuItem";
|
||||
this.设置ToolStripMenuItem.Size = new System.Drawing.Size(80, 31);
|
||||
this.设置ToolStripMenuItem.Text = "设置";
|
||||
//
|
||||
// 修改密码ToolStripMenuItem
|
||||
//
|
||||
this.修改密码ToolStripMenuItem.Name = "修改密码ToolStripMenuItem";
|
||||
this.修改密码ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.修改密码ToolStripMenuItem.Text = "修改密码";
|
||||
this.修改密码ToolStripMenuItem.Click += new System.EventHandler(this.修改密码ToolStripMenuItem_Click);
|
||||
//
|
||||
// 留言板ToolStripMenuItem
|
||||
//
|
||||
this.留言板ToolStripMenuItem.Name = "留言板ToolStripMenuItem";
|
||||
this.留言板ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.留言板ToolStripMenuItem.Text = "留言板";
|
||||
this.留言板ToolStripMenuItem.Click += new System.EventHandler(this.留言板ToolStripMenuItem_Click);
|
||||
//
|
||||
// 我的信息ToolStripMenuItem
|
||||
//
|
||||
this.我的信息ToolStripMenuItem.Name = "我的信息ToolStripMenuItem";
|
||||
this.我的信息ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.我的信息ToolStripMenuItem.Text = "我的信息";
|
||||
this.我的信息ToolStripMenuItem.Click += new System.EventHandler(this.我的信息ToolStripMenuItem_Click);
|
||||
//
|
||||
// 关于ToolStripMenuItem
|
||||
//
|
||||
this.关于ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.关于本软件ToolStripMenuItem,
|
||||
this.更新日志ToolStripMenuItem,
|
||||
this.版本号说明ToolStripMenuItem,
|
||||
this.意见反馈ToolStripMenuItem});
|
||||
this.关于ToolStripMenuItem.Image = global::软件系统客户端模版.Properties.Resources.ASCube_32xLG;
|
||||
this.关于ToolStripMenuItem.Name = "关于ToolStripMenuItem";
|
||||
this.关于ToolStripMenuItem.Size = new System.Drawing.Size(80, 31);
|
||||
this.关于ToolStripMenuItem.Text = "关于";
|
||||
//
|
||||
// 关于本软件ToolStripMenuItem
|
||||
//
|
||||
this.关于本软件ToolStripMenuItem.Name = "关于本软件ToolStripMenuItem";
|
||||
this.关于本软件ToolStripMenuItem.Size = new System.Drawing.Size(184, 32);
|
||||
this.关于本软件ToolStripMenuItem.Text = "关于本软件";
|
||||
this.关于本软件ToolStripMenuItem.Click += new System.EventHandler(this.关于本软件ToolStripMenuItem_Click);
|
||||
//
|
||||
// 更新日志ToolStripMenuItem
|
||||
//
|
||||
this.更新日志ToolStripMenuItem.Name = "更新日志ToolStripMenuItem";
|
||||
this.更新日志ToolStripMenuItem.Size = new System.Drawing.Size(184, 32);
|
||||
this.更新日志ToolStripMenuItem.Text = "更新日志";
|
||||
this.更新日志ToolStripMenuItem.Click += new System.EventHandler(this.更新日志ToolStripMenuItem_Click);
|
||||
//
|
||||
// 版本号说明ToolStripMenuItem
|
||||
//
|
||||
this.版本号说明ToolStripMenuItem.Name = "版本号说明ToolStripMenuItem";
|
||||
this.版本号说明ToolStripMenuItem.Size = new System.Drawing.Size(184, 32);
|
||||
this.版本号说明ToolStripMenuItem.Text = "版本号说明";
|
||||
this.版本号说明ToolStripMenuItem.Click += new System.EventHandler(this.版本号说明ToolStripMenuItem_Click);
|
||||
//
|
||||
// 意见反馈ToolStripMenuItem
|
||||
//
|
||||
this.意见反馈ToolStripMenuItem.Name = "意见反馈ToolStripMenuItem";
|
||||
this.意见反馈ToolStripMenuItem.Size = new System.Drawing.Size(184, 32);
|
||||
this.意见反馈ToolStripMenuItem.Text = "意见反馈";
|
||||
this.意见反馈ToolStripMenuItem.Click += new System.EventHandler(this.意见反馈ToolStripMenuItem_Click);
|
||||
//
|
||||
// panel_right
|
||||
//
|
||||
this.panel_right.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
@@ -212,6 +353,50 @@
|
||||
this.panel_right_mini.TabIndex = 21;
|
||||
this.panel_right_mini.Visible = false;
|
||||
//
|
||||
// pictureBox_right_file
|
||||
//
|
||||
this.pictureBox_right_file.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.pictureBox_right_file.Image = global::软件系统客户端模版.Properties.Resources.RolesNode_Valid_Closed;
|
||||
this.pictureBox_right_file.Location = new System.Drawing.Point(3, 44);
|
||||
this.pictureBox_right_file.Name = "pictureBox_right_file";
|
||||
this.pictureBox_right_file.Size = new System.Drawing.Size(17, 17);
|
||||
this.pictureBox_right_file.TabIndex = 23;
|
||||
this.pictureBox_right_file.TabStop = false;
|
||||
this.pictureBox_right_file.Click += new System.EventHandler(this.pictureBox_right_file_Click);
|
||||
//
|
||||
// pictureBox_right_profile
|
||||
//
|
||||
this.pictureBox_right_profile.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.pictureBox_right_profile.Image = global::软件系统客户端模版.Properties.Resources.UserProfilenode_8706;
|
||||
this.pictureBox_right_profile.Location = new System.Drawing.Point(3, 24);
|
||||
this.pictureBox_right_profile.Name = "pictureBox_right_profile";
|
||||
this.pictureBox_right_profile.Size = new System.Drawing.Size(17, 17);
|
||||
this.pictureBox_right_profile.TabIndex = 22;
|
||||
this.pictureBox_right_profile.TabStop = false;
|
||||
this.pictureBox_right_profile.Click += new System.EventHandler(this.pictureBox_right_profile_Click);
|
||||
//
|
||||
// pictureBox_right_restore
|
||||
//
|
||||
this.pictureBox_right_restore.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.pictureBox_right_restore.Image = global::软件系统客户端模版.Properties.Resources.Association;
|
||||
this.pictureBox_right_restore.Location = new System.Drawing.Point(3, 4);
|
||||
this.pictureBox_right_restore.Name = "pictureBox_right_restore";
|
||||
this.pictureBox_right_restore.Size = new System.Drawing.Size(17, 17);
|
||||
this.pictureBox_right_restore.TabIndex = 21;
|
||||
this.pictureBox_right_restore.TabStop = false;
|
||||
this.pictureBox_right_restore.Click += new System.EventHandler(this.pictureBox_right_restore_Click);
|
||||
//
|
||||
// pictureBox_right_shrink
|
||||
//
|
||||
this.pictureBox_right_shrink.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.pictureBox_right_shrink.Image = global::软件系统客户端模版.Properties.Resources.Association;
|
||||
this.pictureBox_right_shrink.Location = new System.Drawing.Point(201, 4);
|
||||
this.pictureBox_right_shrink.Name = "pictureBox_right_shrink";
|
||||
this.pictureBox_right_shrink.Size = new System.Drawing.Size(17, 17);
|
||||
this.pictureBox_right_shrink.TabIndex = 20;
|
||||
this.pictureBox_right_shrink.TabStop = false;
|
||||
this.pictureBox_right_shrink.Click += new System.EventHandler(this.pictureBox_right_shrink_Click);
|
||||
//
|
||||
// netClientOnline1
|
||||
//
|
||||
this.netClientOnline1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
@@ -433,200 +618,6 @@
|
||||
this.pictureBox1.TabStop = false;
|
||||
this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);
|
||||
//
|
||||
// pictureBox_right_profile
|
||||
//
|
||||
this.pictureBox_right_profile.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.pictureBox_right_profile.Image = global::软件系统客户端模版.Properties.Resources.UserProfilenode_8706;
|
||||
this.pictureBox_right_profile.Location = new System.Drawing.Point(3, 24);
|
||||
this.pictureBox_right_profile.Name = "pictureBox_right_profile";
|
||||
this.pictureBox_right_profile.Size = new System.Drawing.Size(17, 17);
|
||||
this.pictureBox_right_profile.TabIndex = 22;
|
||||
this.pictureBox_right_profile.TabStop = false;
|
||||
this.pictureBox_right_profile.Click += new System.EventHandler(this.pictureBox_right_profile_Click);
|
||||
//
|
||||
// pictureBox_right_restore
|
||||
//
|
||||
this.pictureBox_right_restore.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.pictureBox_right_restore.Image = global::软件系统客户端模版.Properties.Resources.Association;
|
||||
this.pictureBox_right_restore.Location = new System.Drawing.Point(3, 4);
|
||||
this.pictureBox_right_restore.Name = "pictureBox_right_restore";
|
||||
this.pictureBox_right_restore.Size = new System.Drawing.Size(17, 17);
|
||||
this.pictureBox_right_restore.TabIndex = 21;
|
||||
this.pictureBox_right_restore.TabStop = false;
|
||||
this.pictureBox_right_restore.Click += new System.EventHandler(this.pictureBox_right_restore_Click);
|
||||
//
|
||||
// pictureBox_right_shrink
|
||||
//
|
||||
this.pictureBox_right_shrink.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.pictureBox_right_shrink.Image = global::软件系统客户端模版.Properties.Resources.Association;
|
||||
this.pictureBox_right_shrink.Location = new System.Drawing.Point(201, 4);
|
||||
this.pictureBox_right_shrink.Name = "pictureBox_right_shrink";
|
||||
this.pictureBox_right_shrink.Size = new System.Drawing.Size(17, 17);
|
||||
this.pictureBox_right_shrink.TabIndex = 20;
|
||||
this.pictureBox_right_shrink.TabStop = false;
|
||||
this.pictureBox_right_shrink.Click += new System.EventHandler(this.pictureBox_right_shrink_Click);
|
||||
//
|
||||
// 管理员ToolStripMenuItem
|
||||
//
|
||||
this.管理员ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.更改公告ToolStripMenuItem,
|
||||
this.账户管理ToolStripMenuItem,
|
||||
this.注册账号ToolStripMenuItem,
|
||||
this.消息发送ToolStripMenuItem,
|
||||
this.toolStripSeparator1,
|
||||
this.远程更新ToolStripMenuItem,
|
||||
this.日志查看ToolStripMenuItem,
|
||||
this.开发中心ToolStripMenuItem,
|
||||
this.系统配置ToolStripMenuItem});
|
||||
this.管理员ToolStripMenuItem.Image = global::软件系统客户端模版.Properties.Resources.Team_32xLG;
|
||||
this.管理员ToolStripMenuItem.Name = "管理员ToolStripMenuItem";
|
||||
this.管理员ToolStripMenuItem.Size = new System.Drawing.Size(100, 31);
|
||||
this.管理员ToolStripMenuItem.Text = "管理员";
|
||||
//
|
||||
// 更改公告ToolStripMenuItem
|
||||
//
|
||||
this.更改公告ToolStripMenuItem.Name = "更改公告ToolStripMenuItem";
|
||||
this.更改公告ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.更改公告ToolStripMenuItem.Text = "更改公告";
|
||||
this.更改公告ToolStripMenuItem.Click += new System.EventHandler(this.更改公告ToolStripMenuItem_Click);
|
||||
//
|
||||
// 账户管理ToolStripMenuItem
|
||||
//
|
||||
this.账户管理ToolStripMenuItem.Name = "账户管理ToolStripMenuItem";
|
||||
this.账户管理ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.账户管理ToolStripMenuItem.Text = "账户管理";
|
||||
this.账户管理ToolStripMenuItem.Click += new System.EventHandler(this.账户管理ToolStripMenuItem_Click);
|
||||
//
|
||||
// 注册账号ToolStripMenuItem
|
||||
//
|
||||
this.注册账号ToolStripMenuItem.Name = "注册账号ToolStripMenuItem";
|
||||
this.注册账号ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.注册账号ToolStripMenuItem.Text = "注册账号";
|
||||
this.注册账号ToolStripMenuItem.Click += new System.EventHandler(this.注册账号ToolStripMenuItem_Click);
|
||||
//
|
||||
// 消息发送ToolStripMenuItem
|
||||
//
|
||||
this.消息发送ToolStripMenuItem.Name = "消息发送ToolStripMenuItem";
|
||||
this.消息发送ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.消息发送ToolStripMenuItem.Text = "消息发送";
|
||||
this.消息发送ToolStripMenuItem.Click += new System.EventHandler(this.消息发送ToolStripMenuItem_Click);
|
||||
//
|
||||
// toolStripSeparator1
|
||||
//
|
||||
this.toolStripSeparator1.Name = "toolStripSeparator1";
|
||||
this.toolStripSeparator1.Size = new System.Drawing.Size(161, 6);
|
||||
//
|
||||
// 远程更新ToolStripMenuItem
|
||||
//
|
||||
this.远程更新ToolStripMenuItem.Name = "远程更新ToolStripMenuItem";
|
||||
this.远程更新ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.远程更新ToolStripMenuItem.Text = "远程更新";
|
||||
this.远程更新ToolStripMenuItem.Click += new System.EventHandler(this.远程更新ToolStripMenuItem_Click);
|
||||
//
|
||||
// 日志查看ToolStripMenuItem
|
||||
//
|
||||
this.日志查看ToolStripMenuItem.Name = "日志查看ToolStripMenuItem";
|
||||
this.日志查看ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.日志查看ToolStripMenuItem.Text = "日志查看";
|
||||
this.日志查看ToolStripMenuItem.Click += new System.EventHandler(this.日志查看ToolStripMenuItem_Click);
|
||||
//
|
||||
// 开发中心ToolStripMenuItem
|
||||
//
|
||||
this.开发中心ToolStripMenuItem.Name = "开发中心ToolStripMenuItem";
|
||||
this.开发中心ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.开发中心ToolStripMenuItem.Text = "开发中心";
|
||||
this.开发中心ToolStripMenuItem.Click += new System.EventHandler(this.开发中心ToolStripMenuItem_Click);
|
||||
//
|
||||
// 系统配置ToolStripMenuItem
|
||||
//
|
||||
this.系统配置ToolStripMenuItem.Name = "系统配置ToolStripMenuItem";
|
||||
this.系统配置ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.系统配置ToolStripMenuItem.Text = "系统配置";
|
||||
this.系统配置ToolStripMenuItem.Click += new System.EventHandler(this.系统配置ToolStripMenuItem_Click);
|
||||
//
|
||||
// 设置ToolStripMenuItem
|
||||
//
|
||||
this.设置ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.修改密码ToolStripMenuItem,
|
||||
this.留言板ToolStripMenuItem,
|
||||
this.我的信息ToolStripMenuItem});
|
||||
this.设置ToolStripMenuItem.Image = global::软件系统客户端模版.Properties.Resources.PickAxe_32xLG;
|
||||
this.设置ToolStripMenuItem.Name = "设置ToolStripMenuItem";
|
||||
this.设置ToolStripMenuItem.Size = new System.Drawing.Size(80, 31);
|
||||
this.设置ToolStripMenuItem.Text = "设置";
|
||||
//
|
||||
// 修改密码ToolStripMenuItem
|
||||
//
|
||||
this.修改密码ToolStripMenuItem.Name = "修改密码ToolStripMenuItem";
|
||||
this.修改密码ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.修改密码ToolStripMenuItem.Text = "修改密码";
|
||||
this.修改密码ToolStripMenuItem.Click += new System.EventHandler(this.修改密码ToolStripMenuItem_Click);
|
||||
//
|
||||
// 留言板ToolStripMenuItem
|
||||
//
|
||||
this.留言板ToolStripMenuItem.Name = "留言板ToolStripMenuItem";
|
||||
this.留言板ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.留言板ToolStripMenuItem.Text = "留言板";
|
||||
this.留言板ToolStripMenuItem.Click += new System.EventHandler(this.留言板ToolStripMenuItem_Click);
|
||||
//
|
||||
// 我的信息ToolStripMenuItem
|
||||
//
|
||||
this.我的信息ToolStripMenuItem.Name = "我的信息ToolStripMenuItem";
|
||||
this.我的信息ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.我的信息ToolStripMenuItem.Text = "我的信息";
|
||||
this.我的信息ToolStripMenuItem.Click += new System.EventHandler(this.我的信息ToolStripMenuItem_Click);
|
||||
//
|
||||
// 关于ToolStripMenuItem
|
||||
//
|
||||
this.关于ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.关于本软件ToolStripMenuItem,
|
||||
this.更新日志ToolStripMenuItem,
|
||||
this.版本号说明ToolStripMenuItem,
|
||||
this.意见反馈ToolStripMenuItem});
|
||||
this.关于ToolStripMenuItem.Image = global::软件系统客户端模版.Properties.Resources.ASCube_32xLG;
|
||||
this.关于ToolStripMenuItem.Name = "关于ToolStripMenuItem";
|
||||
this.关于ToolStripMenuItem.Size = new System.Drawing.Size(80, 31);
|
||||
this.关于ToolStripMenuItem.Text = "关于";
|
||||
//
|
||||
// 关于本软件ToolStripMenuItem
|
||||
//
|
||||
this.关于本软件ToolStripMenuItem.Name = "关于本软件ToolStripMenuItem";
|
||||
this.关于本软件ToolStripMenuItem.Size = new System.Drawing.Size(184, 32);
|
||||
this.关于本软件ToolStripMenuItem.Text = "关于本软件";
|
||||
this.关于本软件ToolStripMenuItem.Click += new System.EventHandler(this.关于本软件ToolStripMenuItem_Click);
|
||||
//
|
||||
// 更新日志ToolStripMenuItem
|
||||
//
|
||||
this.更新日志ToolStripMenuItem.Name = "更新日志ToolStripMenuItem";
|
||||
this.更新日志ToolStripMenuItem.Size = new System.Drawing.Size(184, 32);
|
||||
this.更新日志ToolStripMenuItem.Text = "更新日志";
|
||||
this.更新日志ToolStripMenuItem.Click += new System.EventHandler(this.更新日志ToolStripMenuItem_Click);
|
||||
//
|
||||
// 版本号说明ToolStripMenuItem
|
||||
//
|
||||
this.版本号说明ToolStripMenuItem.Name = "版本号说明ToolStripMenuItem";
|
||||
this.版本号说明ToolStripMenuItem.Size = new System.Drawing.Size(184, 32);
|
||||
this.版本号说明ToolStripMenuItem.Text = "版本号说明";
|
||||
this.版本号说明ToolStripMenuItem.Click += new System.EventHandler(this.版本号说明ToolStripMenuItem_Click);
|
||||
//
|
||||
// 意见反馈ToolStripMenuItem
|
||||
//
|
||||
this.意见反馈ToolStripMenuItem.Name = "意见反馈ToolStripMenuItem";
|
||||
this.意见反馈ToolStripMenuItem.Size = new System.Drawing.Size(184, 32);
|
||||
this.意见反馈ToolStripMenuItem.Text = "意见反馈";
|
||||
this.意见反馈ToolStripMenuItem.Click += new System.EventHandler(this.意见反馈ToolStripMenuItem_Click);
|
||||
//
|
||||
// pictureBox_right_file
|
||||
//
|
||||
this.pictureBox_right_file.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.pictureBox_right_file.Image = global::软件系统客户端模版.Properties.Resources.RolesNode_Valid_Closed;
|
||||
this.pictureBox_right_file.Location = new System.Drawing.Point(3, 44);
|
||||
this.pictureBox_right_file.Name = "pictureBox_right_file";
|
||||
this.pictureBox_right_file.Size = new System.Drawing.Size(17, 17);
|
||||
this.pictureBox_right_file.TabIndex = 23;
|
||||
this.pictureBox_right_file.TabStop = false;
|
||||
this.pictureBox_right_file.Click += new System.EventHandler(this.pictureBox_right_file_Click);
|
||||
//
|
||||
// FormMainWindow
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
@@ -655,12 +646,12 @@
|
||||
this.panel_right.ResumeLayout(false);
|
||||
this.panel_right.PerformLayout();
|
||||
this.panel_right_mini.ResumeLayout(false);
|
||||
this.panel_left.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox_right_file)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox_right_profile)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox_right_restore)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox_right_shrink)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox_right_file)).EndInit();
|
||||
this.panel_left.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
@@ -713,7 +704,6 @@
|
||||
private System.Windows.Forms.ToolStripMenuItem 留言板ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 意见反馈ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 消息发送ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 开发中心ToolStripMenuItem;
|
||||
private System.Windows.Forms.PictureBox pictureBox1;
|
||||
private System.Windows.Forms.ToolStripMenuItem 系统配置ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 我的信息ToolStripMenuItem;
|
||||
|
||||
@@ -306,32 +306,6 @@ namespace 软件系统客户端模版
|
||||
}
|
||||
}
|
||||
|
||||
private void 开发中心ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
using (FormSuper fs = new FormSuper(() =>
|
||||
{
|
||||
OperateResult<byte[]> result = UserClient.Net_simplify_client.ReadFromServer(CommonHeadCode.SimplifyHeadCode.性能计数, new byte[0]);
|
||||
//解析
|
||||
if (result.IsSuccess)
|
||||
{
|
||||
int[] data = new int[result.Content.Length / 4];
|
||||
for (int i = 0; i < data.Length; i++)
|
||||
{
|
||||
data[i] = BitConverter.ToInt32(result.Content, i * 4);
|
||||
}
|
||||
return data;
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
}))
|
||||
{
|
||||
fs.ShowDialog();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void 我的信息ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
|
||||
54
软件系统服务端模版/FormServerWindow.Designer.cs
generated
54
软件系统服务端模版/FormServerWindow.Designer.cs
generated
@@ -61,8 +61,8 @@
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.label_GC_Memery = new System.Windows.Forms.Label();
|
||||
this.label_Pm_Memery = new System.Windows.Forms.Label();
|
||||
this.label_Count_Simplify = new System.Windows.Forms.Label();
|
||||
this.label_Count_Push = new System.Windows.Forms.Label();
|
||||
this.statusStrip1.SuspendLayout();
|
||||
this.menuStrip1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
@@ -313,30 +313,30 @@
|
||||
this.label7.TabIndex = 15;
|
||||
this.label7.Text = "Push:";
|
||||
//
|
||||
// label_GC_Memery
|
||||
// label_Count_Simplify
|
||||
//
|
||||
this.label_GC_Memery.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label_GC_Memery.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.label_GC_Memery.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.label_GC_Memery.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label_GC_Memery.Location = new System.Drawing.Point(648, 37);
|
||||
this.label_GC_Memery.Name = "label_GC_Memery";
|
||||
this.label_GC_Memery.Size = new System.Drawing.Size(108, 24);
|
||||
this.label_GC_Memery.TabIndex = 16;
|
||||
this.label_GC_Memery.Text = "0";
|
||||
this.label_GC_Memery.TextAlign = System.Drawing.ContentAlignment.TopRight;
|
||||
this.label_Count_Simplify.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label_Count_Simplify.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.label_Count_Simplify.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.label_Count_Simplify.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label_Count_Simplify.Location = new System.Drawing.Point(648, 37);
|
||||
this.label_Count_Simplify.Name = "label_Count_Simplify";
|
||||
this.label_Count_Simplify.Size = new System.Drawing.Size(108, 24);
|
||||
this.label_Count_Simplify.TabIndex = 16;
|
||||
this.label_Count_Simplify.Text = "0";
|
||||
this.label_Count_Simplify.TextAlign = System.Drawing.ContentAlignment.TopRight;
|
||||
//
|
||||
// label_Pm_Memery
|
||||
// label_Count_Push
|
||||
//
|
||||
this.label_Pm_Memery.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label_Pm_Memery.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.label_Pm_Memery.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label_Pm_Memery.Location = new System.Drawing.Point(648, 67);
|
||||
this.label_Pm_Memery.Name = "label_Pm_Memery";
|
||||
this.label_Pm_Memery.Size = new System.Drawing.Size(108, 24);
|
||||
this.label_Pm_Memery.TabIndex = 17;
|
||||
this.label_Pm_Memery.Text = "0";
|
||||
this.label_Pm_Memery.TextAlign = System.Drawing.ContentAlignment.TopRight;
|
||||
this.label_Count_Push.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label_Count_Push.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.label_Count_Push.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label_Count_Push.Location = new System.Drawing.Point(648, 67);
|
||||
this.label_Count_Push.Name = "label_Count_Push";
|
||||
this.label_Count_Push.Size = new System.Drawing.Size(108, 24);
|
||||
this.label_Count_Push.TabIndex = 17;
|
||||
this.label_Count_Push.Text = "0";
|
||||
this.label_Count_Push.TextAlign = System.Drawing.ContentAlignment.TopRight;
|
||||
//
|
||||
// FormServerWindow
|
||||
//
|
||||
@@ -344,8 +344,8 @@
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.Color.AliceBlue;
|
||||
this.ClientSize = new System.Drawing.Size(764, 481);
|
||||
this.Controls.Add(this.label_Pm_Memery);
|
||||
this.Controls.Add(this.label_GC_Memery);
|
||||
this.Controls.Add(this.label_Count_Push);
|
||||
this.Controls.Add(this.label_Count_Simplify);
|
||||
this.Controls.Add(this.label7);
|
||||
this.Controls.Add(this.label6);
|
||||
this.Controls.Add(this.label5);
|
||||
@@ -404,8 +404,8 @@
|
||||
private System.Windows.Forms.ToolStripMenuItem 日志查看ToolStripMenuItem;
|
||||
private System.Windows.Forms.Label label6;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.Label label_GC_Memery;
|
||||
private System.Windows.Forms.Label label_Pm_Memery;
|
||||
private System.Windows.Forms.Label label_Count_Simplify;
|
||||
private System.Windows.Forms.Label label_Count_Push;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -229,6 +229,7 @@ namespace 软件系统服务端模版
|
||||
Ultimate_File_Initiaization(); // 共享文件引擎初始化
|
||||
Net_File_Portrait_Initialization(); // 头像文件管理服务
|
||||
Net_Udp_Server_Initialization(); // UDP引擎服务初始化
|
||||
Net_Push_Server_Initialization( ); // 推送网络引擎初始化
|
||||
启动服务器ToolStripMenuItem.Text = "已启动";
|
||||
启动服务器ToolStripMenuItem.BackColor = Color.LimeGreen;
|
||||
IsSystemStart = true;
|
||||
@@ -1075,6 +1076,28 @@ namespace 软件系统服务端模版
|
||||
|
||||
#endregion
|
||||
|
||||
#region Push Net [ 推送网络 ]
|
||||
|
||||
private NetPushServer pushServer;
|
||||
|
||||
|
||||
private void Net_Push_Server_Initialization( )
|
||||
{
|
||||
try
|
||||
{
|
||||
pushServer = new NetPushServer( );
|
||||
pushServer.Token = UserSystem.KeyToken;
|
||||
pushServer.LogNet = RuntimeLogHelper;
|
||||
pushServer.ServerStart( UserSystem.Port_Push_Server );
|
||||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
SoftBasic.ShowExceptionMessage( ex );
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Time Tick Thread
|
||||
|
||||
/*********************************************************************************************
|
||||
@@ -1106,6 +1129,8 @@ namespace 软件系统服务端模版
|
||||
{
|
||||
toolStripStatusLabel_time.Text = DateTime.Now.ToString( );
|
||||
RenderOnlineAccount( );
|
||||
if (net_simplify_server != null) label_Count_Simplify.Text = net_simplify_server.ClientCount.ToString( );
|
||||
if (pushServer != null) label_Count_Push.Text = pushServer.OnlineCount.ToString( );
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user