From c4e2f5693a15d8258f633d6c86ae23876b66b3d1 Mon Sep 17 00:00:00 2001 From: "DESKTOP-S459P9R\\LSJ" Date: Fri, 28 Nov 2025 09:43:35 +0900 Subject: [PATCH] =?UTF-8?q?8.9.0=20->=208.8.1=20=EB=B2=84=EC=A0=BC=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- INT63DC_2C/Forms/FormConfiguration.cs | 63 +++++++++++++++------------ INT63DC_2C/Forms/FormInformation.cs | 2 +- 2 files changed, 36 insertions(+), 29 deletions(-) diff --git a/INT63DC_2C/Forms/FormConfiguration.cs b/INT63DC_2C/Forms/FormConfiguration.cs index 24221b0..c32df9b 100644 --- a/INT63DC_2C/Forms/FormConfiguration.cs +++ b/INT63DC_2C/Forms/FormConfiguration.cs @@ -680,6 +680,38 @@ namespace INT63DC_2C.Forms this.labelEmptyWeight.Text = Helper.StringToDecimalPlaces(value, this.ParentForm.SystemConfig.DecimalPlaces); } + private void COM3ProtocolDescription() + { + if (this.comboBoxSerial3Mode.SelectedIndex == 1) + { + this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],{GRD[1],WEIGHT[6]} * n,ETX[1]"; + this.labelProtocolDescriptionCOM3_2.Text = ""; + } + else if (this.comboBoxSerial3Mode.SelectedIndex == 2) + { + this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],UNDER[6],PASS[6],OVER[6],TARE[6]"; + this.labelProtocolDescriptionCOM3_2.Text = "{GRD[1],WEIGHT[6]} * n,ETX[1]"; + } + else if (this.comboBoxSerial3Mode.SelectedIndex == 3) + { + this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],UNDER[6],PASS[6],OVER[6],TARE[6]"; + this.labelProtocolDescriptionCOM3_2.Text = "PASS CNT[7],NG CNT[7],{GRD[1],WEIGHT[6]} * n,ETX[1]"; + } + else + { + if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) + { + this.labelProtocolDescriptionCOM3_1.Text = "COM3协议说明"; + this.labelProtocolDescriptionCOM3_2.Text = "COM3协议说明"; + } + else + { + this.labelProtocolDescriptionCOM3_1.Text = "COM3 Protocol Description"; + this.labelProtocolDescriptionCOM3_2.Text = "COM3 Protocol Description"; + } + } + } + public void UpdateZeroParameterRangeDisplay(DataStore.EquipmentStatus status, Collection values) { if (values == null || values.Count == 0) @@ -838,6 +870,8 @@ namespace INT63DC_2C.Forms value = this.ParentForm.SystemConfig.EmptyWeight; this.labelEmptyWeight.Text = Helper.StringToDecimalPlaces(value, this.ParentForm.SystemConfig.DecimalPlaces); + + this.COM3ProtocolDescription(); } #endregion @@ -1079,34 +1113,7 @@ namespace INT63DC_2C.Forms private void comboBoxSerial3_SelectedIndexChanged(object sender, EventArgs e) { - if (this.comboBoxSerial3Mode.SelectedIndex == 1) - { - this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],{GRD[1],WEIGHT[6]} * n,ETX[1]"; - this.labelProtocolDescriptionCOM3_2.Text = ""; - } - else if (this.comboBoxSerial3Mode.SelectedIndex == 2) - { - this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],UNDER[6],PASS[6],OVER[6],TARE[6]"; - this.labelProtocolDescriptionCOM3_2.Text = "{GRD[1],WEIGHT[6]} * n,ETX[1]"; - } - else if (this.comboBoxSerial3Mode.SelectedIndex == 3) - { - this.labelProtocolDescriptionCOM3_1.Text = "STX[1],ID[5],NO[4],UNDER[6],PASS[6],OVER[6],TARE[6]"; - this.labelProtocolDescriptionCOM3_2.Text = "PASS CNT[7],NG CNT[7],{GRD[1],WEIGHT[6]} * n,ETX[1]"; - } - else - { - if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.labelProtocolDescriptionCOM3_1.Text = "COM3协议说明"; - this.labelProtocolDescriptionCOM3_2.Text = "COM3协议说明"; - } - else - { - this.labelProtocolDescriptionCOM3_1.Text = "COM3 Protocol Description"; - this.labelProtocolDescriptionCOM3_2.Text = "COM3 Protocol Description"; - } - } + this.COM3ProtocolDescription(); this.buttonSave3.Enabled = true; } diff --git a/INT63DC_2C/Forms/FormInformation.cs b/INT63DC_2C/Forms/FormInformation.cs index 257a189..40a4f4b 100644 --- a/INT63DC_2C/Forms/FormInformation.cs +++ b/INT63DC_2C/Forms/FormInformation.cs @@ -153,7 +153,7 @@ namespace INT63DC_2C.Forms } private void DefaultSetting() { - this.labelDisplayVer.Text = "8.9.0"; + this.labelDisplayVer.Text = "8.8.1"; this.labelSerialNo.Text = this.ParentForm.SystemConfig.SerialNumber; this.textBoxSerialNo.Location = new Point(395, 225); this.textBoxSerialNo.Visible = false;