服务器新增推送网络,移除开发中心功能。

This commit is contained in:
dathlin
2018-05-08 11:15:45 +08:00
parent c5ba15a95b
commit 326b715a13
8 changed files with 295 additions and 313 deletions

View File

@@ -10,6 +10,19 @@ namespace CommonLibrary.DataBaseSupport
/// </summary>
public class SqlServerSupport
{
#region Constructor
/// <summary>
/// 实例化一个默认的构造函数
/// </summary>
public SqlServerSupport( )
{
}
#endregion
/// <summary>
/// 数据库的连接字符串,该信息应来源于服务器保存的连接字符串
/// </summary>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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)
{

View File

@@ -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;

View File

@@ -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)

View File

@@ -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;
}
}

View File

@@ -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
/*********************************************************************************************
@@ -1092,7 +1115,7 @@ namespace 软件系统服务端模版
{
toolStripStatusLabel_time.Alignment = ToolStripItemAlignment.Right;
statusStrip1.LayoutStyle = ToolStripLayoutStyle.StackWithOverflow;
toolStripStatusLabel_time.ForeColor = Color.Purple;//紫色
toolStripStatusLabel_time.ForeColor = Color.Purple; // 紫色
Thread thread = new Thread(new ThreadStart(ThreadTimeTick));
@@ -1106,12 +1129,14 @@ 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( );
}
public void ThreadTimeTick()
{
Thread.Sleep(300);//加一个微小的延时
Thread.Sleep(300); // 加一个微小的延时
int second = DateTime.Now.Second - 1;
int minute = -1;
int hour = -1;