Procházet zdrojové kódy

解决导入本地记录文件是,自定义字符串以\0结尾高级参数界面异常问题。

Dail před 11 měsíci
rodič
revize
015a0a02d2

binární
.vs/Welling_Motor_Debug_Tool/v17/.suo


+ 3 - 3
Welling_Motor_Debug_Tool/GenerateParams.Designer.cs

@@ -743,7 +743,7 @@
             this.button_NoteRead.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
             this.button_NoteRead.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.button_NoteRead.ForeColor = System.Drawing.Color.White;
-            this.button_NoteRead.Location = new System.Drawing.Point(292, 590);
+            this.button_NoteRead.Location = new System.Drawing.Point(292, 564);
             this.button_NoteRead.Name = "button_NoteRead";
             this.button_NoteRead.Size = new System.Drawing.Size(90, 45);
             this.button_NoteRead.TabIndex = 2;
@@ -756,7 +756,7 @@
             this.button_NoteWrite.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(0)))));
             this.button_NoteWrite.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.button_NoteWrite.ForeColor = System.Drawing.Color.White;
-            this.button_NoteWrite.Location = new System.Drawing.Point(388, 590);
+            this.button_NoteWrite.Location = new System.Drawing.Point(388, 564);
             this.button_NoteWrite.Name = "button_NoteWrite";
             this.button_NoteWrite.Size = new System.Drawing.Size(90, 45);
             this.button_NoteWrite.TabIndex = 2;
@@ -770,7 +770,7 @@
             this.richTextBox_Note.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.richTextBox_Note.Location = new System.Drawing.Point(6, 6);
             this.richTextBox_Note.Name = "richTextBox_Note";
-            this.richTextBox_Note.Size = new System.Drawing.Size(472, 578);
+            this.richTextBox_Note.Size = new System.Drawing.Size(472, 556);
             this.richTextBox_Note.TabIndex = 1;
             this.richTextBox_Note.Text = "";
             // 

+ 10 - 37
Welling_Motor_Debug_Tool/GenerateParams.cs

@@ -432,44 +432,17 @@ namespace Welling_Motor_Debug_Tool
                     fileInfo += "校验码," + "\r\n";
                     fileInfo += "\r\n";
 
-                    if (array_CfgInfo[71].ToString().Length <= 6)
-                    {
-                        fileInfo += "[自定义1],0\r\n";
-                        fileInfo += "自定义字符串1," + "\r\n";
-                        fileInfo += "\r\n";
-                    }
-                    else
-                    {
-                        fileInfo += "[自定义1],1\r\n";
-                        fileInfo += "自定义字符串1," + array_CfgInfo[71].ToString().Split(new string[] { ": " }, StringSplitOptions.None)[1] + "\r\n";
-                        fileInfo += "\r\n";
-                    }
+                    fileInfo += "[自定义1],0\r\n";
+                    fileInfo += "自定义字符串1," + "\r\n";
+                    fileInfo += "\r\n";
 
-                    if (array_CfgInfo[72].ToString().Length <= 6)
-                    {
-                        fileInfo += "[自定义2],0\r\n";
-                        fileInfo += "自定义字符串2," + "\r\n";
-                        fileInfo += "\r\n";
-                    }
-                    else
-                    {
-                        fileInfo += "[自定义2],1\r\n";
-                        fileInfo += "自定义字符串2," + array_CfgInfo[72].ToString().Split(new string[] { ": " }, StringSplitOptions.None)[1] + "\r\n";
-                        fileInfo += "\r\n";
-                    }
+                    fileInfo += "[自定义2],0\r\n";
+                    fileInfo += "自定义字符串1," + "\r\n";
+                    fileInfo += "\r\n";
 
-                    if (array_CfgInfo[73].ToString().Length <= 6)
-                    {
-                        fileInfo += "[自定义3],0\r\n";
-                        fileInfo += "自定义字符串3," + "\r\n";
-                        fileInfo += "\r\n";
-                    }
-                    else
-                    {
-                        fileInfo += "[自定义3],1\r\n";
-                        fileInfo += "自定义字符串3," + array_CfgInfo[73].ToString().Split(new string[] { ": " }, StringSplitOptions.None)[1] + "\r\n";
-                        fileInfo += "\r\n";
-                    }
+                    fileInfo += "[自定义3],0\r\n";
+                    fileInfo += "自定义字符串1," + "\r\n";
+                    fileInfo += "\r\n";
 
                     fileInfo += "[生产信息],1\r\n";
                     fileInfo += "生产商," + "\r\n";
@@ -537,7 +510,7 @@ namespace Welling_Motor_Debug_Tool
 
                     //加载高级界面
                     richTextBox_AdvanceParams.Clear();
-                    richTextBox_AdvanceParams.AppendText(fileInfo);
+                    richTextBox_AdvanceParams. AppendText(fileInfo);
 
                     //加载简易界面
                     do //基础参数界面

binární
Welling_Motor_Debug_Tool/obj/Debug/Welling_Motor_Debug_Tool.csproj.GenerateResource.cache


binární
Welling_Motor_Debug_Tool/obj/Debug/Welling_Motor_Debug_Tool.exe


binární
Welling_Motor_Debug_Tool/obj/Debug/Welling_Motor_Debug_Tool.pdb