代码精简优化,正式发布框架1.0.4版本

This commit is contained in:
dathlin
2017-05-20 09:41:21 +08:00
parent aaf9175c35
commit 5f7e55b311
6 changed files with 82 additions and 47 deletions

View File

@@ -36,6 +36,7 @@
this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();
this.toolStripStatusLabel2 = new System.Windows.Forms.ToolStripStatusLabel();
this.toolStripStatusLabel_version = 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();
@@ -53,7 +54,7 @@
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.listBox1 = new System.Windows.Forms.ListBox();
this.toolStripStatusLabel_time = new System.Windows.Forms.ToolStripStatusLabel();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.statusStrip1.SuspendLayout();
this.menuStrip1.SuspendLayout();
this.SuspendLayout();
@@ -90,6 +91,12 @@
this.toolStripStatusLabel_version.Size = new System.Drawing.Size(43, 17);
this.toolStripStatusLabel_version.Text = "V1.0.0";
//
// toolStripStatusLabel_time
//
this.toolStripStatusLabel_time.Name = "toolStripStatusLabel_time";
this.toolStripStatusLabel_time.Size = new System.Drawing.Size(32, 17);
this.toolStripStatusLabel_time.Text = "时间";
//
// menuStrip1
//
this.menuStrip1.BackColor = System.Drawing.SystemColors.ActiveCaption;
@@ -155,7 +162,8 @@
//
this.ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem,
this.ToolStripMenuItem});
this.ToolStripMenuItem,
this.ToolStripMenuItem});
this.ToolStripMenuItem.Name = "关于ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(54, 25);
this.ToolStripMenuItem.Text = "关于";
@@ -246,11 +254,12 @@
this.listBox1.Size = new System.Drawing.Size(216, 344);
this.listBox1.TabIndex = 8;
//
// toolStripStatusLabel_time
// 框架作者ToolStripMenuItem
//
this.toolStripStatusLabel_time.Name = "toolStripStatusLabel_time";
this.toolStripStatusLabel_time.Size = new System.Drawing.Size(32, 17);
this.toolStripStatusLabel_time.Text = "时间";
this.ToolStripMenuItem.Name = "框架作者ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(160, 26);
this.ToolStripMenuItem.Text = "框架作者";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// Form1
//
@@ -307,6 +316,7 @@
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel_time;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
}
}

View File

@@ -179,6 +179,13 @@ namespace 软件系统服务端模版
fm.ShowDialog();
}
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
using (FormAuthorAdvertisement faa = new FormAuthorAdvertisement())
{
faa.ShowDialog();
}
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
//该部分比较复杂,需要对委托,匿名委托概念比较清晰