浏览代码

修改部分功能.

dail 4 年之前
父节点
当前提交
4357cc4966

二进制
.vs/MOTINOVA_Motor_Factory_Set/v16/.suo


+ 2 - 2
ExportForm.Designer.cs

@@ -1164,7 +1164,7 @@
             // 
             // button_Generate
             // 
-            this.button_Generate.BackColor = System.Drawing.Color.Teal;
+            this.button_Generate.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(113)))), ((int)(((byte)(185)))));
             this.button_Generate.ForeColor = System.Drawing.Color.White;
             this.button_Generate.Location = new System.Drawing.Point(974, 491);
             this.button_Generate.Name = "button_Generate";
@@ -1176,7 +1176,7 @@
             // 
             // button_Default
             // 
-            this.button_Default.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(0)))));
+            this.button_Default.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(113)))), ((int)(((byte)(185)))));
             this.button_Default.ForeColor = System.Drawing.Color.White;
             this.button_Default.Location = new System.Drawing.Point(888, 491);
             this.button_Default.Name = "button_Default";

+ 105 - 41
ImportForm.Designer.cs

@@ -34,9 +34,13 @@
             this.label_SystemTime = new System.Windows.Forms.Label();
             this.menuStrip1 = new System.Windows.Forms.MenuStrip();
             this.toolStripMenuIte_PortSet = new System.Windows.Forms.ToolStripMenuItem();
+            this.ToolStripMenuItem_PowerKey = new System.Windows.Forms.ToolStripMenuItem();
+            this.开ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+            this.关ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
             this.groupBox4 = new System.Windows.Forms.GroupBox();
             this.comboBox_File = new System.Windows.Forms.ComboBox();
             this.groupBox1 = new System.Windows.Forms.GroupBox();
+            this.label_ErrorInfo = new System.Windows.Forms.Label();
             this.label26 = new System.Windows.Forms.Label();
             this.label18 = new System.Windows.Forms.Label();
             this.label37 = new System.Windows.Forms.Label();
@@ -72,6 +76,7 @@
             this.richTextBox_Ver = new System.Windows.Forms.RichTextBox();
             this.label8 = new System.Windows.Forms.Label();
             this.label6 = new System.Windows.Forms.Label();
+            this.label20 = new System.Windows.Forms.Label();
             this.label5 = new System.Windows.Forms.Label();
             this.groupBox5 = new System.Windows.Forms.GroupBox();
             this.groupBox6 = new System.Windows.Forms.GroupBox();
@@ -83,6 +88,7 @@
             this.label4 = new System.Windows.Forms.Label();
             this.textBox_PDinfo = new System.Windows.Forms.TextBox();
             this.button_Write = new System.Windows.Forms.Button();
+            this.button_Start = new System.Windows.Forms.Button();
             this.button_Clear = new System.Windows.Forms.Button();
             this.groupBox9 = new System.Windows.Forms.GroupBox();
             this.textBox_Dir = new System.Windows.Forms.TextBox();
@@ -131,10 +137,9 @@
             this.label48 = new System.Windows.Forms.Label();
             this.toolStripComboBox1 = new System.Windows.Forms.ToolStripComboBox();
             this.timer1 = new System.Windows.Forms.Timer(this.components);
-            this.button_Start = new System.Windows.Forms.Button();
-            this.label20 = new System.Windows.Forms.Label();
             this.timer2 = new System.Windows.Forms.Timer(this.components);
-            this.label_ErrorInfo = new System.Windows.Forms.Label();
+            this.button_CheckCfg = new System.Windows.Forms.Button();
+            this.richTextBox_Cfg = new System.Windows.Forms.RichTextBox();
             this.menuStrip1.SuspendLayout();
             this.groupBox4.SuspendLayout();
             this.groupBox1.SuspendLayout();
@@ -176,7 +181,8 @@
             this.menuStrip1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(113)))), ((int)(((byte)(185)))));
             this.menuStrip1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
-            this.toolStripMenuIte_PortSet});
+            this.toolStripMenuIte_PortSet,
+            this.ToolStripMenuItem_PowerKey});
             this.menuStrip1.Location = new System.Drawing.Point(0, 0);
             this.menuStrip1.Name = "menuStrip1";
             this.menuStrip1.Size = new System.Drawing.Size(980, 29);
@@ -185,14 +191,44 @@
             // 
             // toolStripMenuIte_PortSet
             // 
-            this.toolStripMenuIte_PortSet.ForeColor = System.Drawing.Color.White;
+            this.toolStripMenuIte_PortSet.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
             this.toolStripMenuIte_PortSet.Name = "toolStripMenuIte_PortSet";
             this.toolStripMenuIte_PortSet.Size = new System.Drawing.Size(86, 25);
             this.toolStripMenuIte_PortSet.Text = "端口设置";
             this.toolStripMenuIte_PortSet.Click += new System.EventHandler(this.toolStripMenuIte_PortSet_Click);
             // 
+            // ToolStripMenuItem_PowerKey
+            // 
+            this.ToolStripMenuItem_PowerKey.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+            this.开ToolStripMenuItem,
+            this.关ToolStripMenuItem});
+            this.ToolStripMenuItem_PowerKey.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
+            this.ToolStripMenuItem_PowerKey.ImageTransparentColor = System.Drawing.Color.White;
+            this.ToolStripMenuItem_PowerKey.Name = "ToolStripMenuItem_PowerKey";
+            this.ToolStripMenuItem_PowerKey.Size = new System.Drawing.Size(86, 25);
+            this.ToolStripMenuItem_PowerKey.Text = "系统开关";
+            // 
+            // 开ToolStripMenuItem
+            // 
+            this.开ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(113)))), ((int)(((byte)(185)))));
+            this.开ToolStripMenuItem.Name = "开ToolStripMenuItem";
+            this.开ToolStripMenuItem.Size = new System.Drawing.Size(96, 26);
+            this.开ToolStripMenuItem.Text = "开";
+            this.开ToolStripMenuItem.Click += new System.EventHandler(this.开ToolStripMenuItem_Click);
+            // 
+            // 关ToolStripMenuItem
+            // 
+            this.关ToolStripMenuItem.Checked = true;
+            this.关ToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
+            this.关ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(113)))), ((int)(((byte)(185)))));
+            this.关ToolStripMenuItem.Name = "关ToolStripMenuItem";
+            this.关ToolStripMenuItem.Size = new System.Drawing.Size(96, 26);
+            this.关ToolStripMenuItem.Text = "关";
+            this.关ToolStripMenuItem.Click += new System.EventHandler(this.关ToolStripMenuItem_Click);
+            // 
             // groupBox4
             // 
+            this.groupBox4.Controls.Add(this.button_CheckCfg);
             this.groupBox4.Controls.Add(this.comboBox_File);
             this.groupBox4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(113)))), ((int)(((byte)(185)))));
             this.groupBox4.Location = new System.Drawing.Point(12, 32);
@@ -209,7 +245,7 @@
             this.comboBox_File.FormattingEnabled = true;
             this.comboBox_File.Location = new System.Drawing.Point(10, 33);
             this.comboBox_File.Name = "comboBox_File";
-            this.comboBox_File.Size = new System.Drawing.Size(451, 29);
+            this.comboBox_File.Size = new System.Drawing.Size(382, 29);
             this.comboBox_File.TabIndex = 1;
             // 
             // groupBox1
@@ -242,13 +278,21 @@
             this.groupBox1.Controls.Add(this.label7);
             this.groupBox1.Controls.Add(this.label12);
             this.groupBox1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(113)))), ((int)(((byte)(185)))));
-            this.groupBox1.Location = new System.Drawing.Point(494, 352);
+            this.groupBox1.Location = new System.Drawing.Point(495, 352);
             this.groupBox1.Name = "groupBox1";
             this.groupBox1.Size = new System.Drawing.Size(474, 373);
             this.groupBox1.TabIndex = 9;
             this.groupBox1.TabStop = false;
             this.groupBox1.Text = "测试状态";
             // 
+            // label_ErrorInfo
+            // 
+            this.label_ErrorInfo.Location = new System.Drawing.Point(262, 38);
+            this.label_ErrorInfo.Name = "label_ErrorInfo";
+            this.label_ErrorInfo.Size = new System.Drawing.Size(197, 160);
+            this.label_ErrorInfo.TabIndex = 2;
+            this.label_ErrorInfo.Text = "无故障";
+            // 
             // label26
             // 
             this.label26.BackColor = System.Drawing.SystemColors.Control;
@@ -621,6 +665,16 @@
             this.label6.TabIndex = 3;
             this.label6.Text = "↓";
             // 
+            // label20
+            // 
+            this.label20.AutoSize = true;
+            this.label20.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label20.Location = new System.Drawing.Point(90, 86);
+            this.label20.Name = "label20";
+            this.label20.Size = new System.Drawing.Size(26, 22);
+            this.label20.TabIndex = 3;
+            this.label20.Text = "→";
+            // 
             // label5
             // 
             this.label5.AutoSize = true;
@@ -752,6 +806,19 @@
             this.button_Write.UseVisualStyleBackColor = false;
             this.button_Write.Click += new System.EventHandler(this.button_Write_Click);
             // 
+            // button_Start
+            // 
+            this.button_Start.BackColor = System.Drawing.Color.Purple;
+            this.button_Start.Enabled = false;
+            this.button_Start.ForeColor = System.Drawing.Color.White;
+            this.button_Start.Location = new System.Drawing.Point(16, 46);
+            this.button_Start.Name = "button_Start";
+            this.button_Start.Size = new System.Drawing.Size(70, 98);
+            this.button_Start.TabIndex = 0;
+            this.button_Start.Text = "开始\r\n测试";
+            this.button_Start.UseVisualStyleBackColor = false;
+            this.button_Start.Click += new System.EventHandler(this.button_Start_Click);
+            // 
             // button_Clear
             // 
             this.button_Clear.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(64)))), ((int)(((byte)(0)))));
@@ -798,7 +865,7 @@
             this.groupBox9.Controls.Add(this.label23);
             this.groupBox9.Controls.Add(this.label9);
             this.groupBox9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(113)))), ((int)(((byte)(185)))));
-            this.groupBox9.Location = new System.Drawing.Point(494, 32);
+            this.groupBox9.Location = new System.Drawing.Point(495, 32);
             this.groupBox9.Name = "groupBox9";
             this.groupBox9.Size = new System.Drawing.Size(474, 206);
             this.groupBox9.TabIndex = 9;
@@ -1090,7 +1157,7 @@
             this.groupBox10.Controls.Add(this.label30);
             this.groupBox10.Controls.Add(this.label48);
             this.groupBox10.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(113)))), ((int)(((byte)(185)))));
-            this.groupBox10.Location = new System.Drawing.Point(494, 244);
+            this.groupBox10.Location = new System.Drawing.Point(495, 244);
             this.groupBox10.Name = "groupBox10";
             this.groupBox10.Size = new System.Drawing.Size(474, 102);
             this.groupBox10.TabIndex = 9;
@@ -1228,42 +1295,33 @@
             this.timer1.Interval = 20;
             this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
             // 
-            // button_Start
-            // 
-            this.button_Start.BackColor = System.Drawing.Color.Purple;
-            this.button_Start.Enabled = false;
-            this.button_Start.ForeColor = System.Drawing.Color.White;
-            this.button_Start.Location = new System.Drawing.Point(16, 46);
-            this.button_Start.Name = "button_Start";
-            this.button_Start.Size = new System.Drawing.Size(70, 98);
-            this.button_Start.TabIndex = 0;
-            this.button_Start.Text = "开始\r\n测试";
-            this.button_Start.UseVisualStyleBackColor = false;
-            this.button_Start.Click += new System.EventHandler(this.button_Start_Click);
-            // 
-            // label20
-            // 
-            this.label20.AutoSize = true;
-            this.label20.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label20.Location = new System.Drawing.Point(90, 86);
-            this.label20.Name = "label20";
-            this.label20.Size = new System.Drawing.Size(26, 22);
-            this.label20.TabIndex = 3;
-            this.label20.Text = "→";
-            // 
             // timer2
             // 
             this.timer2.Enabled = true;
             this.timer2.Interval = 1000;
             this.timer2.Tick += new System.EventHandler(this.timer2_Tick);
             // 
-            // label_ErrorInfo
+            // button_CheckCfg
             // 
-            this.label_ErrorInfo.Location = new System.Drawing.Point(262, 38);
-            this.label_ErrorInfo.Name = "label_ErrorInfo";
-            this.label_ErrorInfo.Size = new System.Drawing.Size(197, 160);
-            this.label_ErrorInfo.TabIndex = 2;
-            this.label_ErrorInfo.Text = "无故障";
+            this.button_CheckCfg.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(113)))), ((int)(((byte)(185)))));
+            this.button_CheckCfg.ForeColor = System.Drawing.Color.White;
+            this.button_CheckCfg.Location = new System.Drawing.Point(398, 32);
+            this.button_CheckCfg.Name = "button_CheckCfg";
+            this.button_CheckCfg.Size = new System.Drawing.Size(63, 31);
+            this.button_CheckCfg.TabIndex = 2;
+            this.button_CheckCfg.Text = "查看";
+            this.button_CheckCfg.UseVisualStyleBackColor = false;
+            this.button_CheckCfg.Click += new System.EventHandler(this.button_CheckCfg_Click);
+            // 
+            // richTextBox_Cfg
+            // 
+            this.richTextBox_Cfg.Location = new System.Drawing.Point(974, 43);
+            this.richTextBox_Cfg.Name = "richTextBox_Cfg";
+            this.richTextBox_Cfg.ReadOnly = true;
+            this.richTextBox_Cfg.Size = new System.Drawing.Size(274, 682);
+            this.richTextBox_Cfg.TabIndex = 11;
+            this.richTextBox_Cfg.Text = "";
+            this.richTextBox_Cfg.Visible = false;
             // 
             // ImportForm
             // 
@@ -1271,14 +1329,15 @@
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.BackColor = System.Drawing.Color.White;
             this.ClientSize = new System.Drawing.Size(980, 758);
-            this.Controls.Add(this.groupBox10);
-            this.Controls.Add(this.groupBox9);
-            this.Controls.Add(this.groupBox1);
+            this.Controls.Add(this.richTextBox_Cfg);
             this.Controls.Add(this.groupBox2);
             this.Controls.Add(this.groupBox4);
             this.Controls.Add(this.label_SystemTime);
             this.Controls.Add(this.label2);
             this.Controls.Add(this.menuStrip1);
+            this.Controls.Add(this.groupBox9);
+            this.Controls.Add(this.groupBox10);
+            this.Controls.Add(this.groupBox1);
             this.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(113)))), ((int)(((byte)(185)))));
             this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
@@ -1417,5 +1476,10 @@
         private System.Windows.Forms.Timer timer2;
         private System.Windows.Forms.MenuStrip menuStrip1;
         private System.Windows.Forms.Label label_ErrorInfo;
+        private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem_PowerKey;
+        private System.Windows.Forms.ToolStripMenuItem 关ToolStripMenuItem;
+        private System.Windows.Forms.ToolStripMenuItem 开ToolStripMenuItem;
+        private System.Windows.Forms.Button button_CheckCfg;
+        private System.Windows.Forms.RichTextBox richTextBox_Cfg;
     }
 }

+ 91 - 2
ImportForm.cs

@@ -89,7 +89,6 @@ namespace MOTINOVA_Motor_Factory_Set
                 comboBox_File.Items.Add(Path.GetFileName(file));
             }
 
-
         }
 
         private void toolStripMenuIte_PortSet_Click(object sender, EventArgs e)
@@ -274,8 +273,8 @@ namespace MOTINOVA_Motor_Factory_Set
         #region 数据存储
         private void DataSave(byte[] Data)
         {
-            //数据存储
             string SaveData = "";
+            //数据存储
             for (int i = 0; i < Data.Length; i++)
             {
                 SaveData += Convert.ToString(Data[i], 16).PadLeft(2, '0').ToUpper() + " ";
@@ -1350,6 +1349,10 @@ namespace MOTINOVA_Motor_Factory_Set
             SendCmd((ushort)0x751, (byte)0x11, (ushort)0x3500, null);
             Thread.Sleep(200);
 
+            timer1.Enabled = false;
+            MessageBox.Show("已保存!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
+            timer1.Enabled = true;
+
             button_Fnish.Text = "保存";
 
             button_Clear.Enabled = false;
@@ -1408,5 +1411,91 @@ namespace MOTINOVA_Motor_Factory_Set
         {
             label_SystemTime.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
         }
+
+        private void 开ToolStripMenuItem_Click(object sender, EventArgs e)
+        {
+            byte[] Data = new byte[1];
+
+            if (portsettings_form.serialPort1.IsOpen)
+            {
+                //开机
+                Data[0] = 0xF1;
+                SendCmd(0x7FF, 0x16, 0x2201, Data);
+                开ToolStripMenuItem.Checked = true;
+                关ToolStripMenuItem.Checked = false;
+            }
+            else
+            {
+                MessageBox.Show("串口未连接");
+                return;
+            }
+
+        }
+
+        private void 关ToolStripMenuItem_Click(object sender, EventArgs e)
+        {
+            byte[] Data = new byte[1];
+
+            if (portsettings_form.serialPort1.IsOpen)
+            {
+                //关机
+                Data[0] = 0xF0;
+                SendCmd(0x7FF, 0x16, 0x2201, Data);
+                开ToolStripMenuItem.Checked = false;
+                关ToolStripMenuItem.Checked = true;
+            }
+            else
+            {
+                MessageBox.Show("串口未连接");
+                return;
+            }
+        }
+
+        private void button_CheckCfg_Click(object sender, EventArgs e)
+        {
+            if (button_CheckCfg.Text == "查看")
+            {
+                if (comboBox_File.Items.Count == 0) //配置文件目录为空
+                {
+                    MessageBox.Show("无可用配置文件!", "", MessageBoxButtons.OK, MessageBoxIcon.Warning);
+                    return;
+                }
+                if (comboBox_File.Text.Trim().Length == 0)//未选择配置文件
+                {
+                    MessageBox.Show("请选择配置文件!", "", MessageBoxButtons.OK, MessageBoxIcon.Warning);
+                    return;
+                }
+
+                richTextBox_Cfg.Visible = true;
+                richTextBox_Cfg.Text = "";
+
+                button_CheckCfg.Text = "隐藏";
+                this.Size = new Size(this.Size.Width + 280, this.Size.Height);
+
+                //显示文件
+                string SelectFile = comboBox_File.SelectedItem.ToString();
+                StreamReader objReader = new StreamReader(CfgFilePath + "\\" + SelectFile);
+                string sLine = "";
+                ArrayList arrText = new ArrayList();//创建一个动态数组
+                while (sLine != null)
+                {
+                    sLine = objReader.ReadLine();
+                    arrText.Add(sLine);
+                }
+                objReader.Close();
+                foreach (string sOutput in arrText)
+                {
+                    richTextBox_Cfg.Text += sOutput + "\r\n";
+                }
+            }
+            else
+            {
+                richTextBox_Cfg.Visible = false;
+                richTextBox_Cfg.Text = "";
+                button_CheckCfg.Text = "查看";
+
+                this.Size = new Size(this.Size.Width - 280, this.Size.Height);
+            }
+        }
     }
 }

+ 43 - 0
MOTINOVA_Motor_Factory_Set.csproj

@@ -11,6 +11,22 @@
     <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
     <FileAlignment>512</FileAlignment>
     <Deterministic>true</Deterministic>
+    <IsWebBootstrapper>false</IsWebBootstrapper>
+    <PublishUrl>D:\SoftDesign\MOTINOVA_Motor_Factory_Set\</PublishUrl>
+    <Install>true</Install>
+    <InstallFrom>Disk</InstallFrom>
+    <UpdateEnabled>false</UpdateEnabled>
+    <UpdateMode>Foreground</UpdateMode>
+    <UpdateInterval>7</UpdateInterval>
+    <UpdateIntervalUnits>Days</UpdateIntervalUnits>
+    <UpdatePeriodically>false</UpdatePeriodically>
+    <UpdateRequired>false</UpdateRequired>
+    <MapFileExtensions>true</MapFileExtensions>
+    <ApplicationRevision>1</ApplicationRevision>
+    <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
+    <UseApplicationTrust>false</UseApplicationTrust>
+    <PublishWizardCompleted>true</PublishWizardCompleted>
+    <BootstrapperEnabled>true</BootstrapperEnabled>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
     <PlatformTarget>AnyCPU</PlatformTarget>
@@ -31,6 +47,24 @@
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
   </PropertyGroup>
+  <PropertyGroup>
+    <ManifestCertificateThumbprint>59B8C10AF31C7A7A8CE1223D08FB77D250DDFB1C</ManifestCertificateThumbprint>
+  </PropertyGroup>
+  <PropertyGroup>
+    <ManifestKeyFile>MOTINOVA_Motor_Factory_Set_TemporaryKey.pfx</ManifestKeyFile>
+  </PropertyGroup>
+  <PropertyGroup>
+    <GenerateManifests>true</GenerateManifests>
+  </PropertyGroup>
+  <PropertyGroup>
+    <TargetZone>LocalIntranet</TargetZone>
+  </PropertyGroup>
+  <PropertyGroup>
+    <ApplicationManifest>Properties\app.manifest</ApplicationManifest>
+  </PropertyGroup>
+  <PropertyGroup>
+    <SignManifests>true</SignManifests>
+  </PropertyGroup>
   <ItemGroup>
     <Reference Include="System" />
     <Reference Include="System.Data" />
@@ -97,6 +131,8 @@
     <EmbeddedResource Include="StartForm.resx">
       <DependentUpon>StartForm.cs</DependentUpon>
     </EmbeddedResource>
+    <None Include="MOTINOVA_Motor_Factory_Set_TemporaryKey.pfx" />
+    <None Include="Properties\app.manifest" />
     <None Include="Properties\Settings.settings">
       <Generator>SettingsSingleFileGenerator</Generator>
       <LastGenOutput>Settings.Designer.cs</LastGenOutput>
@@ -119,5 +155,12 @@
   <ItemGroup>
     <None Include="images\MkqN4K4Mvj.png" />
   </ItemGroup>
+  <ItemGroup>
+    <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
+      <Visible>False</Visible>
+      <ProductName>.NET Framework 3.5 SP1</ProductName>
+      <Install>true</Install>
+    </BootstrapperPackage>
+  </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
 </Project>

+ 3 - 3
ManageForm.Designer.cs

@@ -68,7 +68,7 @@
             // 
             // button_Enter
             // 
-            this.button_Enter.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(0)))));
+            this.button_Enter.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(113)))), ((int)(((byte)(185)))));
             this.button_Enter.ForeColor = System.Drawing.Color.White;
             this.button_Enter.Location = new System.Drawing.Point(248, 38);
             this.button_Enter.Name = "button_Enter";
@@ -135,7 +135,7 @@
             // 
             // button_Delete
             // 
-            this.button_Delete.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(192)))));
+            this.button_Delete.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(113)))), ((int)(((byte)(185)))));
             this.button_Delete.ForeColor = System.Drawing.Color.White;
             this.button_Delete.Location = new System.Drawing.Point(696, 235);
             this.button_Delete.Name = "button_Delete";
@@ -147,7 +147,7 @@
             // 
             // button_OpenFile
             // 
-            this.button_OpenFile.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(64)))), ((int)(((byte)(0)))));
+            this.button_OpenFile.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(113)))), ((int)(((byte)(185)))));
             this.button_OpenFile.ForeColor = System.Drawing.Color.White;
             this.button_OpenFile.Location = new System.Drawing.Point(696, 145);
             this.button_OpenFile.Name = "button_OpenFile";

+ 14 - 9
StartForm.Designer.cs

@@ -41,28 +41,30 @@
             // 
             // button_Export
             // 
+            this.button_Export.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(113)))), ((int)(((byte)(185)))));
             this.button_Export.Font = new System.Drawing.Font("微软雅黑", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.button_Export.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(113)))), ((int)(((byte)(185)))));
+            this.button_Export.ForeColor = System.Drawing.Color.White;
             this.button_Export.Location = new System.Drawing.Point(292, 210);
             this.button_Export.Margin = new System.Windows.Forms.Padding(5);
             this.button_Export.Name = "button_Export";
             this.button_Export.Size = new System.Drawing.Size(200, 100);
             this.button_Export.TabIndex = 0;
             this.button_Export.Text = "参数生成";
-            this.button_Export.UseVisualStyleBackColor = true;
+            this.button_Export.UseVisualStyleBackColor = false;
             this.button_Export.Click += new System.EventHandler(this.button_Export_Click);
             // 
             // button_Import
             // 
+            this.button_Import.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(113)))), ((int)(((byte)(185)))));
             this.button_Import.Font = new System.Drawing.Font("微软雅黑", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.button_Import.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(113)))), ((int)(((byte)(185)))));
+            this.button_Import.ForeColor = System.Drawing.Color.White;
             this.button_Import.Location = new System.Drawing.Point(58, 210);
             this.button_Import.Margin = new System.Windows.Forms.Padding(5);
             this.button_Import.Name = "button_Import";
             this.button_Import.Size = new System.Drawing.Size(200, 100);
             this.button_Import.TabIndex = 0;
             this.button_Import.Text = "量产模式";
-            this.button_Import.UseVisualStyleBackColor = true;
+            this.button_Import.UseVisualStyleBackColor = false;
             this.button_Import.Click += new System.EventHandler(this.button_Import_Click);
             // 
             // label1
@@ -77,15 +79,16 @@
             // 
             // button_Mang
             // 
+            this.button_Mang.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(113)))), ((int)(((byte)(185)))));
             this.button_Mang.Font = new System.Drawing.Font("微软雅黑", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.button_Mang.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(113)))), ((int)(((byte)(185)))));
+            this.button_Mang.ForeColor = System.Drawing.Color.White;
             this.button_Mang.Location = new System.Drawing.Point(526, 210);
             this.button_Mang.Margin = new System.Windows.Forms.Padding(5);
             this.button_Mang.Name = "button_Mang";
             this.button_Mang.Size = new System.Drawing.Size(200, 100);
             this.button_Mang.TabIndex = 0;
             this.button_Mang.Text = "文件管理";
-            this.button_Mang.UseVisualStyleBackColor = true;
+            this.button_Mang.UseVisualStyleBackColor = false;
             this.button_Mang.Click += new System.EventHandler(this.button_Mang_Click);
             // 
             // pictureBox1
@@ -100,13 +103,15 @@
             // 
             // label2
             // 
-            this.label2.AutoSize = true;
+            this.label2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(113)))), ((int)(((byte)(185)))));
             this.label2.Font = new System.Drawing.Font("微软雅黑", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label2.Location = new System.Drawing.Point(143, 85);
+            this.label2.ForeColor = System.Drawing.Color.White;
+            this.label2.Location = new System.Drawing.Point(0, 0);
             this.label2.Name = "label2";
-            this.label2.Size = new System.Drawing.Size(499, 46);
+            this.label2.Size = new System.Drawing.Size(782, 100);
             this.label2.TabIndex = 3;
             this.label2.Text = "MOTINOVA电机量产测试工具";
+            this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
             // label3
             // 

二进制
bin/Debug/MOTINOVA_Motor_Factory_Set.exe


二进制
bin/Debug/MOTINOVA_Motor_Factory_Set.pdb


二进制
obj/Debug/DesignTimeResolveAssemblyReferences.cache


二进制
obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache


+ 9 - 4
obj/Debug/MOTINOVA_Motor_Factory_Set.csproj.FileListAbsolute.txt

@@ -1,13 +1,18 @@
+D:\SoftDesign\MOTINOVA_Motor_Factory_Set\MOTINOVA_Motor_Factory_Set\bin\Debug\MOTINOVA_Motor_Factory_Set.exe.manifest
+D:\SoftDesign\MOTINOVA_Motor_Factory_Set\MOTINOVA_Motor_Factory_Set\bin\Debug\MOTINOVA_Motor_Factory_Set.application
 D:\SoftDesign\MOTINOVA_Motor_Factory_Set\MOTINOVA_Motor_Factory_Set\bin\Debug\MOTINOVA_Motor_Factory_Set.exe
 D:\SoftDesign\MOTINOVA_Motor_Factory_Set\MOTINOVA_Motor_Factory_Set\bin\Debug\MOTINOVA_Motor_Factory_Set.pdb
 D:\SoftDesign\MOTINOVA_Motor_Factory_Set\MOTINOVA_Motor_Factory_Set\obj\Debug\MOTINOVA_Motor_Factory_Set.csprojAssemblyReference.cache
+D:\SoftDesign\MOTINOVA_Motor_Factory_Set\MOTINOVA_Motor_Factory_Set\obj\Debug\MOTINOVA_Motor_Factory_Set.ExportForm.resources
+D:\SoftDesign\MOTINOVA_Motor_Factory_Set\MOTINOVA_Motor_Factory_Set\obj\Debug\MOTINOVA_Motor_Factory_Set.ImportForm.resources
+D:\SoftDesign\MOTINOVA_Motor_Factory_Set\MOTINOVA_Motor_Factory_Set\obj\Debug\MOTINOVA_Motor_Factory_Set.ManageForm.resources
+D:\SoftDesign\MOTINOVA_Motor_Factory_Set\MOTINOVA_Motor_Factory_Set\obj\Debug\MOTINOVA_Motor_Factory_Set.PortSettings.resources
 D:\SoftDesign\MOTINOVA_Motor_Factory_Set\MOTINOVA_Motor_Factory_Set\obj\Debug\MOTINOVA_Motor_Factory_Set.Properties.Resources.resources
 D:\SoftDesign\MOTINOVA_Motor_Factory_Set\MOTINOVA_Motor_Factory_Set\obj\Debug\MOTINOVA_Motor_Factory_Set.StartForm.resources
 D:\SoftDesign\MOTINOVA_Motor_Factory_Set\MOTINOVA_Motor_Factory_Set\obj\Debug\MOTINOVA_Motor_Factory_Set.csproj.GenerateResource.cache
 D:\SoftDesign\MOTINOVA_Motor_Factory_Set\MOTINOVA_Motor_Factory_Set\obj\Debug\MOTINOVA_Motor_Factory_Set.csproj.CoreCompileInputs.cache
+D:\SoftDesign\MOTINOVA_Motor_Factory_Set\MOTINOVA_Motor_Factory_Set\obj\Debug\MOTINOVA_Motor_Factory_Set.TrustInfo.xml
+D:\SoftDesign\MOTINOVA_Motor_Factory_Set\MOTINOVA_Motor_Factory_Set\obj\Debug\MOTINOVA_Motor_Factory_Set.exe.manifest
+D:\SoftDesign\MOTINOVA_Motor_Factory_Set\MOTINOVA_Motor_Factory_Set\obj\Debug\MOTINOVA_Motor_Factory_Set.application
 D:\SoftDesign\MOTINOVA_Motor_Factory_Set\MOTINOVA_Motor_Factory_Set\obj\Debug\MOTINOVA_Motor_Factory_Set.exe
 D:\SoftDesign\MOTINOVA_Motor_Factory_Set\MOTINOVA_Motor_Factory_Set\obj\Debug\MOTINOVA_Motor_Factory_Set.pdb
-D:\SoftDesign\MOTINOVA_Motor_Factory_Set\MOTINOVA_Motor_Factory_Set\obj\Debug\MOTINOVA_Motor_Factory_Set.ImportForm.resources
-D:\SoftDesign\MOTINOVA_Motor_Factory_Set\MOTINOVA_Motor_Factory_Set\obj\Debug\MOTINOVA_Motor_Factory_Set.ExportForm.resources
-D:\SoftDesign\MOTINOVA_Motor_Factory_Set\MOTINOVA_Motor_Factory_Set\obj\Debug\MOTINOVA_Motor_Factory_Set.ManageForm.resources
-D:\SoftDesign\MOTINOVA_Motor_Factory_Set\MOTINOVA_Motor_Factory_Set\obj\Debug\MOTINOVA_Motor_Factory_Set.PortSettings.resources

二进制
obj/Debug/MOTINOVA_Motor_Factory_Set.csproj.GenerateResource.cache


二进制
obj/Debug/MOTINOVA_Motor_Factory_Set.csprojAssemblyReference.cache


二进制
obj/Debug/MOTINOVA_Motor_Factory_Set.exe


二进制
obj/Debug/MOTINOVA_Motor_Factory_Set.pdb