Procházet zdrojové kódy

解决参数生成时选择FCT时无法选择运行模式的问题。

Dail před 1 rokem
rodič
revize
66e9cb4d98

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


+ 1 - 1
Welling_Motor_Debug_Tool/GenerateParams.Designer.cs

@@ -1289,7 +1289,7 @@
             this.radioButton_HUB_FCT.TabIndex = 24;
             this.radioButton_HUB_FCT.Text = "HUB_FCT";
             this.radioButton_HUB_FCT.UseVisualStyleBackColor = true;
-            this.radioButton_HUB_FCT.Click += new System.EventHandler(this.radioButton_HUB_Click);
+            this.radioButton_HUB_FCT.Click += new System.EventHandler(this.radioButton_HUB_FCT_Click);
             // 
             // checkBox_SyncFac
             // 

+ 8 - 1
Welling_Motor_Debug_Tool/GenerateParams.cs

@@ -131,10 +131,17 @@ namespace Welling_Motor_Debug_Tool
             comboBox_SysRunMode.Items.Add("踏频");
             comboBox_SysRunMode.Items.Add("力矩");
         }
+        private void radioButton_HUB_FCT_Click(object sender, EventArgs e)
+        {
+            textBox_ProductTag.Text = "GF_250_1";
+            comboBox_SysRunMode.Items.Clear();
+            comboBox_SysRunMode.Items.Add("踏频");
+            comboBox_SysRunMode.Items.Add("力矩");
+        }
 
         private void comboBox_SysRunMode_Click(object sender, EventArgs e)
         {
-            if ((radioButton_MIGIC.Checked | radioButton_HUB.Checked) == false)
+            if ((radioButton_MIGIC.Checked | radioButton_HUB.Checked | radioButton_HUB_FCT.Checked) == false)
             {
                 MessageBox.Show("请选择产品类型", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
             }

binární
Welling_Motor_Debug_Tool/bin/Debug/Welling_Motor_Debug_Tool_V2.1.9-1.exe


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