diff --git a/INT63DC_2C.suo b/INT63DC_2C.suo index d759ed5..5ee71fb 100644 Binary files a/INT63DC_2C.suo and b/INT63DC_2C.suo differ diff --git a/INT63DC_2C/Controls/ControlCalibration10.cs b/INT63DC_2C/Controls/ControlCalibration10.cs index 2b00cee..ec3ef78 100644 --- a/INT63DC_2C/Controls/ControlCalibration10.cs +++ b/INT63DC_2C/Controls/ControlCalibration10.cs @@ -133,36 +133,9 @@ namespace INT63DC_2C.Controls public void CalibrationBalance() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("분동 계산중 입니다"); - this.ParentForm.listBoxHelp.Items.Add("잠시만 기다리세요"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Caculating..."); - this.ParentForm.listBoxHelp.Items.Add("Wait a minute."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("计算..."); - this.ParentForm.listBoxHelp.Items.Add("请稍等"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Kontroluji hmotnost..."); - this.ParentForm.listBoxHelp.Items.Add("čekejte prosím."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Gewichtsüberprüfung,"); - this.ParentForm.listBoxHelp.Items.Add("bitte warten"); - } - else - { - - } - + // Help + this.ParentForm.UpdateDisplayHelpBalance(); + foreach (SmartButton bt in this.CollectionButtonLine) { if (bt.ButtonStatus == SmartX.SmartButton.BUTSTATUS.DOWN) @@ -173,35 +146,8 @@ namespace INT63DC_2C.Controls } public void CalibrationStart() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정을 시작합니다."); - this.ParentForm.listBoxHelp.Items.Add("잠시만 기다리세요."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Calibration start."); - this.ParentForm.listBoxHelp.Items.Add("Wait a minute."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("校准开始按钮"); - this.ParentForm.listBoxHelp.Items.Add("请稍等"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("START kalibrace"); - this.ParentForm.listBoxHelp.Items.Add("čekejte prosím."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrierungsstart"); - this.ParentForm.listBoxHelp.Items.Add("bitte warten"); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpStart(); foreach (SmartButton bt in this.CollectionButtonLine) { @@ -215,31 +161,8 @@ namespace INT63DC_2C.Controls } public void CalibrationCancel() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정을 취소합니다"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Cancel the Calibration"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("取消校准"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Zrušení Kalibrace"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Brechen Sie die "); - this.ParentForm.listBoxHelp.Items.Add("Kalibrierung ab"); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpCancel(); foreach (SmartButton bt in this.CollectionButtonLine) { @@ -329,31 +252,9 @@ namespace INT63DC_2C.Controls labelWeight.Text = string.Format("-{0}", this.ParentForm.labelBalanceWeight.Text); labelWeight.ForeColor = this.NormalColor; labelADC.Text = weightData.ADCValue; - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("분동을 올려주세요."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Put the balance weight."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("放平衡重"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Položit vyvážení hmotnosti."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Gewicht auf den Förderer legen"); - } - else - { - } + // Help + this.ParentForm.UpdateDisplayHelpCalStandby(); this.ParentForm.CalibrationButtonEnable(false, true, true); } @@ -371,31 +272,9 @@ namespace INT63DC_2C.Controls case DataStore.WeightStatus.CalFinish: if (rbChecked == true) { - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정이 완료 되었습니다."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Finished."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("完"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Ukončený."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Die Kalibrierung ist abgeschlossen."); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpCalFinish(); + this.ParentForm.CalibrationButtonEnable(true, false, false); foreach (SmartX.SmartButton bt in this.CollectionButtonLine) bt.Enabled = true; @@ -407,35 +286,9 @@ namespace INT63DC_2C.Controls case DataStore.WeightStatus.CalError: if (rbChecked == true) { - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정 에러"); - this.ParentForm.listBoxHelp.Items.Add("다시 시도해 주세요"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Calibration error."); - this.ParentForm.listBoxHelp.Items.Add("Please try again."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("错误发生,重试"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrace chyba."); - this.ParentForm.listBoxHelp.Items.Add("Zkuste znovu."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Fehler!"); - this.ParentForm.listBoxHelp.Items.Add("Bitte noch einmal versuchen"); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpCalError(); + this.ParentForm.CalibrationButtonEnable(true, false, false); foreach (SmartX.SmartButton bt in this.CollectionButtonLine) bt.Enabled = true; @@ -458,40 +311,8 @@ namespace INT63DC_2C.Controls if (bt == null) return; - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정"); - this.ParentForm.listBoxHelp.Items.Add("LANE을 선택 후"); - this.ParentForm.listBoxHelp.Items.Add("시작을 누르세요"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Calibration"); - this.ParentForm.listBoxHelp.Items.Add("After selecting line, "); - this.ParentForm.listBoxHelp.Items.Add("push the [Start] button."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("校准"); - this.ParentForm.listBoxHelp.Items.Add("选择线后,按[开始]按钮。"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrace"); - this.ParentForm.listBoxHelp.Items.Add("Po výběru řádku, "); - this.ParentForm.listBoxHelp.Items.Add("stiskněte tlačítko [Start]."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrierung"); - this.ParentForm.listBoxHelp.Items.Add("Drücken Sie nach der Auswahl der"); - this.ParentForm.listBoxHelp.Items.Add("Zeile die Taste [Start]."); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpInit(); this.ParentForm.CalibrationButtonEnable(true, false, false); } diff --git a/INT63DC_2C/Controls/ControlCalibration12.cs b/INT63DC_2C/Controls/ControlCalibration12.cs index aa92aea..546d73b 100644 --- a/INT63DC_2C/Controls/ControlCalibration12.cs +++ b/INT63DC_2C/Controls/ControlCalibration12.cs @@ -141,35 +141,8 @@ namespace INT63DC_2C.Controls public void CalibrationBalance() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("분동 계산중 입니다"); - this.ParentForm.listBoxHelp.Items.Add("잠시만 기다리세요"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Caculating..."); - this.ParentForm.listBoxHelp.Items.Add("Wait a minute."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("计算..."); - this.ParentForm.listBoxHelp.Items.Add("请稍等"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Kontroluji hmotnost..."); - this.ParentForm.listBoxHelp.Items.Add("čekejte prosím."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Gewichtsüberprüfung,"); - this.ParentForm.listBoxHelp.Items.Add("bitte warten"); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpBalance(); foreach (SmartButton bt in this.CollectionButtonLine) { @@ -181,35 +154,8 @@ namespace INT63DC_2C.Controls } public void CalibrationStart() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정을 시작합니다."); - this.ParentForm.listBoxHelp.Items.Add("잠시만 기다리세요."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Calibration start."); - this.ParentForm.listBoxHelp.Items.Add("Wait a minute."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("校准开始按钮"); - this.ParentForm.listBoxHelp.Items.Add("请稍等"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("START kalibrace"); - this.ParentForm.listBoxHelp.Items.Add("čekejte prosím."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrierungsstart"); - this.ParentForm.listBoxHelp.Items.Add("bitte warten"); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpStart(); foreach (SmartButton bt in this.CollectionButtonLine) { @@ -223,31 +169,8 @@ namespace INT63DC_2C.Controls } public void CalibrationCancel() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정을 취소합니다"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Cancel the Calibration"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("取消校准"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Zrušení Kalibrace"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Brechen Sie die "); - this.ParentForm.listBoxHelp.Items.Add("Kalibrierung ab"); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpCancel(); foreach (SmartButton bt in this.CollectionButtonLine) { @@ -345,31 +268,9 @@ namespace INT63DC_2C.Controls labelWeight.Text = string.Format("-{0}", this.ParentForm.labelBalanceWeight.Text); labelWeight.ForeColor = this.NormalColor; labelADC.Text = weightData.ADCValue; - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("분동을 올려주세요."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Put the balance weight."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("放平衡重"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Položit vyvážení hmotnosti."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Gewicht auf den Förderer legen"); - } - else - { - - } + + // Help + this.ParentForm.UpdateDisplayHelpCalStandby(); this.ParentForm.CalibrationButtonEnable(false, true, true); } @@ -387,31 +288,9 @@ namespace INT63DC_2C.Controls case DataStore.WeightStatus.CalFinish: if (rbChecked == true) { - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정이 완료 되었습니다."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Finished."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("完"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Ukončený."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Die Kalibrierung ist abgeschlossen."); - } - else - { + // Help + this.ParentForm.UpdateDisplayHelpCalFinish(); - } this.ParentForm.CalibrationButtonEnable(true, false, false); foreach (SmartX.SmartButton bt in this.CollectionButtonLine) bt.Enabled = true; @@ -423,35 +302,9 @@ namespace INT63DC_2C.Controls case DataStore.WeightStatus.CalError: if (rbChecked == true) { - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정 에러"); - this.ParentForm.listBoxHelp.Items.Add("다시 시도해 주세요"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Calibration error."); - this.ParentForm.listBoxHelp.Items.Add("Please try again."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("错误发生,重试"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrace chyba."); - this.ParentForm.listBoxHelp.Items.Add("Zkuste znovu."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Fehler!"); - this.ParentForm.listBoxHelp.Items.Add("Bitte noch einmal versuchen"); - } - else - { + // Help + this.ParentForm.UpdateDisplayHelpCalError(); - } this.ParentForm.CalibrationButtonEnable(true, false, false); foreach (SmartX.SmartButton bt in this.CollectionButtonLine) bt.Enabled = true; @@ -474,40 +327,8 @@ namespace INT63DC_2C.Controls if (bt == null) return; - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정"); - this.ParentForm.listBoxHelp.Items.Add("LANE을 선택 후"); - this.ParentForm.listBoxHelp.Items.Add("시작을 누르세요"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Calibration"); - this.ParentForm.listBoxHelp.Items.Add("After selecting line, "); - this.ParentForm.listBoxHelp.Items.Add("push the [Start] button."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("校准"); - this.ParentForm.listBoxHelp.Items.Add("选择线后,按[开始]按钮。"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrace"); - this.ParentForm.listBoxHelp.Items.Add("Po výběru řádku, "); - this.ParentForm.listBoxHelp.Items.Add("stiskněte tlačítko [Start]."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrierung"); - this.ParentForm.listBoxHelp.Items.Add("Drücken Sie nach der Auswahl der"); - this.ParentForm.listBoxHelp.Items.Add("Zeile die Taste [Start]."); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpInit(); this.ParentForm.CalibrationButtonEnable(true, false, false); } diff --git a/INT63DC_2C/Controls/ControlCalibration16.cs b/INT63DC_2C/Controls/ControlCalibration16.cs index 95735fe..5d617d6 100644 --- a/INT63DC_2C/Controls/ControlCalibration16.cs +++ b/INT63DC_2C/Controls/ControlCalibration16.cs @@ -93,35 +93,8 @@ namespace INT63DC_2C.Controls public void CalibrationBalance() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("분동 계산중 입니다"); - this.ParentForm.listBoxHelp.Items.Add("잠시만 기다리세요"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Caculating..."); - this.ParentForm.listBoxHelp.Items.Add("Wait a minute."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("计算..."); - this.ParentForm.listBoxHelp.Items.Add("请稍等"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Kontroluji hmotnost..."); - this.ParentForm.listBoxHelp.Items.Add("čekejte prosím."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Gewichtsüberprüfung,"); - this.ParentForm.listBoxHelp.Items.Add("bitte warten"); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpBalance(); foreach (SmartButton bt in this.CollectionButtonLane) { @@ -131,37 +104,10 @@ namespace INT63DC_2C.Controls this.ParentForm.CalibrationButtonEnable(false, false, true); } - public void CalibrationStart() + public void CalibrationStart() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정을 시작합니다."); - this.ParentForm.listBoxHelp.Items.Add("잠시만 기다리세요."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Calibration start."); - this.ParentForm.listBoxHelp.Items.Add("Wait a minute."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("校准开始按钮"); - this.ParentForm.listBoxHelp.Items.Add("请稍等"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("START kalibrace"); - this.ParentForm.listBoxHelp.Items.Add("čekejte prosím."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrierungsstart"); - this.ParentForm.listBoxHelp.Items.Add("bitte warten"); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpStart(); foreach (SmartButton bt in this.CollectionButtonLane) { @@ -175,31 +121,8 @@ namespace INT63DC_2C.Controls } public void CalibrationCancel() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정을 취소합니다"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Cancel the Calibration"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("取消校准"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Zrušení Kalibrace"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Brechen Sie die "); - this.ParentForm.listBoxHelp.Items.Add("Kalibrierung ab"); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpCancel(); foreach (SmartButton bt in this.CollectionButtonLane) { @@ -313,31 +236,9 @@ namespace INT63DC_2C.Controls labelWeight.Text = string.Format("-{0}", this.ParentForm.labelBalanceWeight.Text); labelWeight.ForeColor = this.NormalColor; labelADC.Text = weightData.ADCValue; - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("분동을 올려주세요."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Put the balance weight."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("放平衡重"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Položit vyvážení hmotnosti."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Gewicht auf den Förderer legen"); - } - else - { - } + // Help + this.ParentForm.UpdateDisplayHelpCalStandby(); this.ParentForm.CalibrationButtonEnable(false, true, true); } @@ -355,31 +256,9 @@ namespace INT63DC_2C.Controls case DataStore.WeightStatus.CalFinish: if (rbChecked == true) { - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정이 완료 되었습니다."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Finished."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("完"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Ukončený."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Die Kalibrierung ist abgeschlossen."); - } - else - { + // Help + this.ParentForm.UpdateDisplayHelpCalFinish(); - } this.ParentForm.CalibrationButtonEnable(true, false, false); foreach (SmartX.SmartButton bt in this.CollectionButtonLane) bt.Enabled = true; @@ -391,35 +270,9 @@ namespace INT63DC_2C.Controls case DataStore.WeightStatus.CalError: if (rbChecked == true) { - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정 에러"); - this.ParentForm.listBoxHelp.Items.Add("다시 시도해 주세요"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Calibration error."); - this.ParentForm.listBoxHelp.Items.Add("Please try again."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("错误发生,重试"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrace chyba."); - this.ParentForm.listBoxHelp.Items.Add("Zkuste znovu."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Fehler!"); - this.ParentForm.listBoxHelp.Items.Add("Bitte noch einmal versuchen"); - } - else - { + // Help + this.ParentForm.UpdateDisplayHelpCalError(); - } this.ParentForm.CalibrationButtonEnable(true, false, false); foreach (SmartX.SmartButton bt in this.CollectionButtonLane) bt.Enabled = true; @@ -442,40 +295,8 @@ namespace INT63DC_2C.Controls if (bt == null) return; - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정"); - this.ParentForm.listBoxHelp.Items.Add("LANE을 선택 후"); - this.ParentForm.listBoxHelp.Items.Add("시작을 누르세요"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Calibration"); - this.ParentForm.listBoxHelp.Items.Add("After selecting line, "); - this.ParentForm.listBoxHelp.Items.Add("push the [Start] button."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("校准"); - this.ParentForm.listBoxHelp.Items.Add("选择线后,按[开始]按钮。"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrace"); - this.ParentForm.listBoxHelp.Items.Add("Po výběru řádku, "); - this.ParentForm.listBoxHelp.Items.Add("stiskněte tlačítko [Start]."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrierung"); - this.ParentForm.listBoxHelp.Items.Add("Drücken Sie nach der Auswahl der"); - this.ParentForm.listBoxHelp.Items.Add("Zeile die Taste [Start]."); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpInit(); this.ParentForm.CalibrationButtonEnable(true, false, false); } diff --git a/INT63DC_2C/Controls/ControlCalibration2.cs b/INT63DC_2C/Controls/ControlCalibration2.cs index dd4bc94..35535c9 100644 --- a/INT63DC_2C/Controls/ControlCalibration2.cs +++ b/INT63DC_2C/Controls/ControlCalibration2.cs @@ -101,35 +101,8 @@ namespace INT63DC_2C.Controls public void CalibrationBalance() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("분동 계산중 입니다"); - this.ParentForm.listBoxHelp.Items.Add("잠시만 기다리세요"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Caculating..."); - this.ParentForm.listBoxHelp.Items.Add("Wait a minute."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("计算..."); - this.ParentForm.listBoxHelp.Items.Add("请稍等"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Kontroluji hmotnost..."); - this.ParentForm.listBoxHelp.Items.Add("čekejte prosím."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Gewichtsüberprüfung,"); - this.ParentForm.listBoxHelp.Items.Add("bitte warten"); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpBalance(); foreach (SmartButton bt in this.CollectionButtonLine) { @@ -141,35 +114,8 @@ namespace INT63DC_2C.Controls } public void CalibrationStart() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정을 시작합니다."); - this.ParentForm.listBoxHelp.Items.Add("잠시만 기다리세요."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Calibration start."); - this.ParentForm.listBoxHelp.Items.Add("Wait a minute."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("校准开始按钮"); - this.ParentForm.listBoxHelp.Items.Add("请稍等"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("START kalibrace"); - this.ParentForm.listBoxHelp.Items.Add("čekejte prosím."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrierungsstart"); - this.ParentForm.listBoxHelp.Items.Add("bitte warten"); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpStart(); foreach (SmartButton bt in this.CollectionButtonLine) { @@ -183,31 +129,8 @@ namespace INT63DC_2C.Controls } public void CalibrationCancel() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정을 취소합니다"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Cancel the Calibration"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("取消校准"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Zrušení Kalibrace"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Brechen Sie die "); - this.ParentForm.listBoxHelp.Items.Add("Kalibrierung ab"); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpCancel(); foreach (SmartButton bt in this.CollectionButtonLine) { @@ -265,31 +188,10 @@ namespace INT63DC_2C.Controls labelWeight.Text = string.Format("-{0}", this.ParentForm.labelBalanceWeight.Text); labelWeight.ForeColor = this.NormalColor; labelADC.Text = weightData.ADCValue; - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("분동을 올려주세요."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Put the balance weight."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("放平衡重"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Položit vyvážení hmotnosti."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Gewicht auf den Förderer legen"); - } - else - { - } + // Help + this.ParentForm.UpdateDisplayHelpCalStandby(); + this.ParentForm.CalibrationButtonEnable(false, true, true); } break; @@ -306,31 +208,9 @@ namespace INT63DC_2C.Controls case DataStore.WeightStatus.CalFinish: if (rbChecked == true) { - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정이 완료 되었습니다."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Finished."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("完"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Ukončený."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Die Kalibrierung ist abgeschlossen."); - } - else - { + // Help + this.ParentForm.UpdateDisplayHelpCalFinish(); - } this.ParentForm.CalibrationButtonEnable(true, false, false); foreach (SmartX.SmartButton bt in this.CollectionButtonLine) bt.Enabled = true; @@ -342,35 +222,9 @@ namespace INT63DC_2C.Controls case DataStore.WeightStatus.CalError: if (rbChecked == true) { - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정 에러"); - this.ParentForm.listBoxHelp.Items.Add("다시 시도해 주세요"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Calibration error."); - this.ParentForm.listBoxHelp.Items.Add("Please try again."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("错误发生,重试"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrace chyba."); - this.ParentForm.listBoxHelp.Items.Add("Zkuste znovu."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Fehler!"); - this.ParentForm.listBoxHelp.Items.Add("Bitte noch einmal versuchen"); - } - else - { + // Help + this.ParentForm.UpdateDisplayHelpCalError(); - } this.ParentForm.CalibrationButtonEnable(true, false, false); foreach (SmartX.SmartButton bt in this.CollectionButtonLine) bt.Enabled = true; @@ -393,40 +247,8 @@ namespace INT63DC_2C.Controls if (bt == null) return; - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정"); - this.ParentForm.listBoxHelp.Items.Add("LANE을 선택 후"); - this.ParentForm.listBoxHelp.Items.Add("시작을 누르세요"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Calibration"); - this.ParentForm.listBoxHelp.Items.Add("After selecting line, "); - this.ParentForm.listBoxHelp.Items.Add("push the [Start] button."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("校准"); - this.ParentForm.listBoxHelp.Items.Add("选择线后,按[开始]按钮。"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrace"); - this.ParentForm.listBoxHelp.Items.Add("Po výběru řádku, "); - this.ParentForm.listBoxHelp.Items.Add("stiskněte tlačítko [Start]."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrierung"); - this.ParentForm.listBoxHelp.Items.Add("Drücken Sie nach der Auswahl der"); - this.ParentForm.listBoxHelp.Items.Add("Zeile die Taste [Start]."); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpInit(); this.ParentForm.CalibrationButtonEnable(true, false, false); } diff --git a/INT63DC_2C/Controls/ControlCalibration3.cs b/INT63DC_2C/Controls/ControlCalibration3.cs index 1d605f8..394de70 100644 --- a/INT63DC_2C/Controls/ControlCalibration3.cs +++ b/INT63DC_2C/Controls/ControlCalibration3.cs @@ -105,35 +105,8 @@ namespace INT63DC_2C.Controls public void CalibrationBalance() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("분동 계산중 입니다"); - this.ParentForm.listBoxHelp.Items.Add("잠시만 기다리세요"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Caculating..."); - this.ParentForm.listBoxHelp.Items.Add("Wait a minute."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("计算..."); - this.ParentForm.listBoxHelp.Items.Add("请稍等"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Kontroluji hmotnost..."); - this.ParentForm.listBoxHelp.Items.Add("čekejte prosím."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Gewichtsüberprüfung,"); - this.ParentForm.listBoxHelp.Items.Add("bitte warten"); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpBalance(); foreach (SmartButton bt in this.CollectionButtonLine) { @@ -145,35 +118,8 @@ namespace INT63DC_2C.Controls } public void CalibrationStart() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정을 시작합니다."); - this.ParentForm.listBoxHelp.Items.Add("잠시만 기다리세요."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Calibration start."); - this.ParentForm.listBoxHelp.Items.Add("Wait a minute."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("校准开始按钮"); - this.ParentForm.listBoxHelp.Items.Add("请稍等"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("START kalibrace"); - this.ParentForm.listBoxHelp.Items.Add("čekejte prosím."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrierungsstart"); - this.ParentForm.listBoxHelp.Items.Add("bitte warten"); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpStart(); foreach (SmartButton bt in this.CollectionButtonLine) { @@ -187,31 +133,8 @@ namespace INT63DC_2C.Controls } public void CalibrationCancel() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정을 취소합니다"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Cancel the Calibration"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("取消校准"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Zrušení Kalibrace"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Brechen Sie die "); - this.ParentForm.listBoxHelp.Items.Add("Kalibrierung ab"); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpCancel(); foreach (SmartButton bt in this.CollectionButtonLine) { @@ -273,31 +196,10 @@ namespace INT63DC_2C.Controls labelWeight.Text = string.Format("-{0}", this.ParentForm.labelBalanceWeight.Text); labelWeight.ForeColor = this.NormalColor; labelADC.Text = weightData.ADCValue; - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("분동을 올려주세요."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Put the balance weight."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("放平衡重"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Položit vyvážení hmotnosti."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Gewicht auf den Förderer legen"); - } - else - { - } + // Help + this.ParentForm.UpdateDisplayHelpCalStandby(); + this.ParentForm.CalibrationButtonEnable(false, true, true); } break; @@ -314,31 +216,9 @@ namespace INT63DC_2C.Controls case DataStore.WeightStatus.CalFinish: if (rbChecked == true) { - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정이 완료 되었습니다."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Finished."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("完"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Ukončený."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Die Kalibrierung ist abgeschlossen."); - } - else - { + // Help + this.ParentForm.UpdateDisplayHelpCalFinish(); - } this.ParentForm.CalibrationButtonEnable(true, false, false); foreach (SmartX.SmartButton bt in this.CollectionButtonLine) bt.Enabled = true; @@ -350,35 +230,9 @@ namespace INT63DC_2C.Controls case DataStore.WeightStatus.CalError: if (rbChecked == true) { - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정 에러"); - this.ParentForm.listBoxHelp.Items.Add("다시 시도해 주세요"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Calibration error."); - this.ParentForm.listBoxHelp.Items.Add("Please try again."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("错误发生,重试"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrace chyba."); - this.ParentForm.listBoxHelp.Items.Add("Zkuste znovu."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Fehler!"); - this.ParentForm.listBoxHelp.Items.Add("Bitte noch einmal versuchen"); - } - else - { + // Help + this.ParentForm.UpdateDisplayHelpCalError(); - } this.ParentForm.CalibrationButtonEnable(true, false, false); foreach (SmartX.SmartButton bt in this.CollectionButtonLine) bt.Enabled = true; @@ -401,40 +255,8 @@ namespace INT63DC_2C.Controls if (bt == null) return; - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정"); - this.ParentForm.listBoxHelp.Items.Add("LANE을 선택 후"); - this.ParentForm.listBoxHelp.Items.Add("시작을 누르세요"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Calibration"); - this.ParentForm.listBoxHelp.Items.Add("After selecting line, "); - this.ParentForm.listBoxHelp.Items.Add("push the [Start] button."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("校准"); - this.ParentForm.listBoxHelp.Items.Add("选择线后,按[开始]按钮。"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrace"); - this.ParentForm.listBoxHelp.Items.Add("Po výběru řádku, "); - this.ParentForm.listBoxHelp.Items.Add("stiskněte tlačítko [Start]."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrierung"); - this.ParentForm.listBoxHelp.Items.Add("Drücken Sie nach der Auswahl der"); - this.ParentForm.listBoxHelp.Items.Add("Zeile die Taste [Start]."); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpInit(); this.ParentForm.CalibrationButtonEnable(true, false, false); } diff --git a/INT63DC_2C/Controls/ControlCalibration4.cs b/INT63DC_2C/Controls/ControlCalibration4.cs index 83aec8f..1081b78 100644 --- a/INT63DC_2C/Controls/ControlCalibration4.cs +++ b/INT63DC_2C/Controls/ControlCalibration4.cs @@ -109,35 +109,8 @@ namespace INT63DC_2C.Controls public void CalibrationBalance() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("분동 계산중 입니다"); - this.ParentForm.listBoxHelp.Items.Add("잠시만 기다리세요"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Caculating..."); - this.ParentForm.listBoxHelp.Items.Add("Wait a minute."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("计算..."); - this.ParentForm.listBoxHelp.Items.Add("请稍等"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Kontroluji hmotnost..."); - this.ParentForm.listBoxHelp.Items.Add("čekejte prosím."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Gewichtsüberprüfung,"); - this.ParentForm.listBoxHelp.Items.Add("bitte warten"); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpBalance(); foreach (SmartButton bt in this.CollectionButtonLine) { @@ -149,35 +122,8 @@ namespace INT63DC_2C.Controls } public void CalibrationStart() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정을 시작합니다."); - this.ParentForm.listBoxHelp.Items.Add("잠시만 기다리세요."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Calibration start."); - this.ParentForm.listBoxHelp.Items.Add("Wait a minute."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("校准开始按钮"); - this.ParentForm.listBoxHelp.Items.Add("请稍等"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("START kalibrace"); - this.ParentForm.listBoxHelp.Items.Add("čekejte prosím."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrierungsstart"); - this.ParentForm.listBoxHelp.Items.Add("bitte warten"); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpStart(); foreach (SmartButton bt in this.CollectionButtonLine) { @@ -191,31 +137,8 @@ namespace INT63DC_2C.Controls } public void CalibrationCancel() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정을 취소합니다"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Cancel the Calibration"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("取消校准"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Zrušení Kalibrace"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Brechen Sie die "); - this.ParentForm.listBoxHelp.Items.Add("Kalibrierung ab"); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpCancel(); foreach (SmartButton bt in this.CollectionButtonLine) { @@ -281,31 +204,10 @@ namespace INT63DC_2C.Controls labelWeight.Text = string.Format("-{0}", this.ParentForm.labelBalanceWeight.Text); labelWeight.ForeColor = this.NormalColor; labelADC.Text = weightData.ADCValue; - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("분동을 올려주세요."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Put the balance weight."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("放平衡重"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Položit vyvážení hmotnosti."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Gewicht auf den Förderer legen"); - } - else - { - } + // Help + this.ParentForm.UpdateDisplayHelpCalStandby(); + this.ParentForm.CalibrationButtonEnable(false, true, true); } break; @@ -322,31 +224,9 @@ namespace INT63DC_2C.Controls case DataStore.WeightStatus.CalFinish: if (rbChecked == true) { - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정이 완료 되었습니다."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Finished."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("完"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Ukončený."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Die Kalibrierung ist abgeschlossen."); - } - else - { + // Help + this.ParentForm.UpdateDisplayHelpCalFinish(); - } this.ParentForm.CalibrationButtonEnable(true, false, false); foreach (SmartX.SmartButton bt in this.CollectionButtonLine) bt.Enabled = true; @@ -358,35 +238,9 @@ namespace INT63DC_2C.Controls case DataStore.WeightStatus.CalError: if (rbChecked == true) { - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정 에러"); - this.ParentForm.listBoxHelp.Items.Add("다시 시도해 주세요"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Calibration error."); - this.ParentForm.listBoxHelp.Items.Add("Please try again."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("错误发生,重试"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrace chyba."); - this.ParentForm.listBoxHelp.Items.Add("Zkuste znovu."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Fehler!"); - this.ParentForm.listBoxHelp.Items.Add("Bitte noch einmal versuchen"); - } - else - { + // Help + this.ParentForm.UpdateDisplayHelpCalError(); - } this.ParentForm.CalibrationButtonEnable(true, false, false); foreach (SmartX.SmartButton bt in this.CollectionButtonLine) bt.Enabled = true; @@ -409,40 +263,8 @@ namespace INT63DC_2C.Controls if (bt == null) return; - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정"); - this.ParentForm.listBoxHelp.Items.Add("LANE을 선택 후"); - this.ParentForm.listBoxHelp.Items.Add("시작을 누르세요"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Calibration"); - this.ParentForm.listBoxHelp.Items.Add("After selecting line, "); - this.ParentForm.listBoxHelp.Items.Add("push the [Start] button."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("校准"); - this.ParentForm.listBoxHelp.Items.Add("选择线后,按[开始]按钮。"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrace"); - this.ParentForm.listBoxHelp.Items.Add("Po výběru řádku, "); - this.ParentForm.listBoxHelp.Items.Add("stiskněte tlačítko [Start]."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrierung"); - this.ParentForm.listBoxHelp.Items.Add("Drücken Sie nach der Auswahl der"); - this.ParentForm.listBoxHelp.Items.Add("Zeile die Taste [Start]."); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpInit(); this.ParentForm.CalibrationButtonEnable(true, false, false); } diff --git a/INT63DC_2C/Controls/ControlCalibration5.cs b/INT63DC_2C/Controls/ControlCalibration5.cs index a0d6ae1..beca217 100644 --- a/INT63DC_2C/Controls/ControlCalibration5.cs +++ b/INT63DC_2C/Controls/ControlCalibration5.cs @@ -113,35 +113,8 @@ namespace INT63DC_2C.Controls public void CalibrationBalance() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("분동 계산중 입니다"); - this.ParentForm.listBoxHelp.Items.Add("잠시만 기다리세요"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Caculating..."); - this.ParentForm.listBoxHelp.Items.Add("Wait a minute."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("计算..."); - this.ParentForm.listBoxHelp.Items.Add("请稍等"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Kontroluji hmotnost..."); - this.ParentForm.listBoxHelp.Items.Add("čekejte prosím."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Gewichtsüberprüfung,"); - this.ParentForm.listBoxHelp.Items.Add("bitte warten"); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpBalance(); foreach (SmartButton bt in this.CollectionButtonLine) { @@ -153,35 +126,8 @@ namespace INT63DC_2C.Controls } public void CalibrationStart() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정을 시작합니다."); - this.ParentForm.listBoxHelp.Items.Add("잠시만 기다리세요."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Calibration start."); - this.ParentForm.listBoxHelp.Items.Add("Wait a minute."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("校准开始按钮"); - this.ParentForm.listBoxHelp.Items.Add("请稍等"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("START kalibrace"); - this.ParentForm.listBoxHelp.Items.Add("čekejte prosím."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrierungsstart"); - this.ParentForm.listBoxHelp.Items.Add("bitte warten"); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpStart(); foreach (SmartButton bt in this.CollectionButtonLine) { @@ -195,31 +141,8 @@ namespace INT63DC_2C.Controls } public void CalibrationCancel() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정을 취소합니다"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Cancel the Calibration"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("取消校准"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Zrušení Kalibrace"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Brechen Sie die "); - this.ParentForm.listBoxHelp.Items.Add("Kalibrierung ab"); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpCancel(); foreach (SmartButton bt in this.CollectionButtonLine) { @@ -289,31 +212,10 @@ namespace INT63DC_2C.Controls labelWeight.Text = string.Format("-{0}", this.ParentForm.labelBalanceWeight.Text); labelWeight.ForeColor = this.NormalColor; labelADC.Text = weightData.ADCValue; - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("분동을 올려주세요."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Put the balance weight."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("放平衡重"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Položit vyvážení hmotnosti."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Gewicht auf den Förderer legen"); - } - else - { - } + // Help + this.ParentForm.UpdateDisplayHelpCalStandby(); + this.ParentForm.CalibrationButtonEnable(false, true, true); } break; @@ -330,31 +232,9 @@ namespace INT63DC_2C.Controls case DataStore.WeightStatus.CalFinish: if (rbChecked == true) { - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정이 완료 되었습니다."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Finished."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("完"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Ukončený."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Die Kalibrierung ist abgeschlossen."); - } - else - { + // Help + this.ParentForm.UpdateDisplayHelpCalFinish(); - } this.ParentForm.CalibrationButtonEnable(true, false, false); foreach (SmartX.SmartButton bt in this.CollectionButtonLine) bt.Enabled = true; @@ -366,35 +246,9 @@ namespace INT63DC_2C.Controls case DataStore.WeightStatus.CalError: if (rbChecked == true) { - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정 에러"); - this.ParentForm.listBoxHelp.Items.Add("다시 시도해 주세요"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Calibration error."); - this.ParentForm.listBoxHelp.Items.Add("Please try again."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("错误发生,重试"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrace chyba."); - this.ParentForm.listBoxHelp.Items.Add("Zkuste znovu."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Fehler!"); - this.ParentForm.listBoxHelp.Items.Add("Bitte noch einmal versuchen"); - } - else - { + // Help + this.ParentForm.UpdateDisplayHelpCalError(); - } this.ParentForm.CalibrationButtonEnable(true, false, false); foreach (SmartX.SmartButton bt in this.CollectionButtonLine) bt.Enabled = true; @@ -417,40 +271,8 @@ namespace INT63DC_2C.Controls if (bt == null) return; - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정"); - this.ParentForm.listBoxHelp.Items.Add("LANE을 선택 후"); - this.ParentForm.listBoxHelp.Items.Add("시작을 누르세요"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Calibration"); - this.ParentForm.listBoxHelp.Items.Add("After selecting line, "); - this.ParentForm.listBoxHelp.Items.Add("push the [Start] button."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("校准"); - this.ParentForm.listBoxHelp.Items.Add("选择线后,按[开始]按钮。"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrace"); - this.ParentForm.listBoxHelp.Items.Add("Po výběru řádku, "); - this.ParentForm.listBoxHelp.Items.Add("stiskněte tlačítko [Start]."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrierung"); - this.ParentForm.listBoxHelp.Items.Add("Drücken Sie nach der Auswahl der"); - this.ParentForm.listBoxHelp.Items.Add("Zeile die Taste [Start]."); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpInit(); this.ParentForm.CalibrationButtonEnable(true, false, false); } diff --git a/INT63DC_2C/Controls/ControlCalibration6.cs b/INT63DC_2C/Controls/ControlCalibration6.cs index fb7980e..8753f07 100644 --- a/INT63DC_2C/Controls/ControlCalibration6.cs +++ b/INT63DC_2C/Controls/ControlCalibration6.cs @@ -117,35 +117,8 @@ namespace INT63DC_2C.Controls public void CalibrationBalance() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("분동 계산중 입니다"); - this.ParentForm.listBoxHelp.Items.Add("잠시만 기다리세요"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Caculating..."); - this.ParentForm.listBoxHelp.Items.Add("Wait a minute."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("计算..."); - this.ParentForm.listBoxHelp.Items.Add("请稍等"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Kontroluji hmotnost..."); - this.ParentForm.listBoxHelp.Items.Add("čekejte prosím."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Gewichtsüberprüfung,"); - this.ParentForm.listBoxHelp.Items.Add("bitte warten"); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpBalance(); foreach (SmartButton bt in this.CollectionButtonLine) { @@ -157,35 +130,8 @@ namespace INT63DC_2C.Controls } public void CalibrationStart() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정을 시작합니다."); - this.ParentForm.listBoxHelp.Items.Add("잠시만 기다리세요."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Calibration start."); - this.ParentForm.listBoxHelp.Items.Add("Wait a minute."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("校准开始按钮"); - this.ParentForm.listBoxHelp.Items.Add("请稍等"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("START kalibrace"); - this.ParentForm.listBoxHelp.Items.Add("čekejte prosím."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrierungsstart"); - this.ParentForm.listBoxHelp.Items.Add("bitte warten"); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpStart(); foreach (SmartButton bt in this.CollectionButtonLine) { @@ -199,31 +145,8 @@ namespace INT63DC_2C.Controls } public void CalibrationCancel() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정을 취소합니다"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Cancel the Calibration"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("取消校准"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Zrušení Kalibrace"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Brechen Sie die "); - this.ParentForm.listBoxHelp.Items.Add("Kalibrierung ab"); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpCancel(); foreach (SmartButton bt in this.CollectionButtonLine) { @@ -297,31 +220,10 @@ namespace INT63DC_2C.Controls labelWeight.Text = string.Format("-{0}", this.ParentForm.labelBalanceWeight.Text); labelWeight.ForeColor = this.NormalColor; labelADC.Text = weightData.ADCValue; - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("분동을 올려주세요."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Put the balance weight."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("放平衡重"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Položit vyvážení hmotnosti."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Gewicht auf den Förderer legen"); - } - else - { - } + // Help + this.ParentForm.UpdateDisplayHelpCalStandby(); + this.ParentForm.CalibrationButtonEnable(false, true, true); } break; @@ -338,31 +240,9 @@ namespace INT63DC_2C.Controls case DataStore.WeightStatus.CalFinish: if (rbChecked == true) { - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정이 완료 되었습니다."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Finished."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("完"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Ukončený."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Die Kalibrierung ist abgeschlossen."); - } - else - { + // Help + this.ParentForm.UpdateDisplayHelpCalFinish(); - } this.ParentForm.CalibrationButtonEnable(true, false, false); foreach (SmartX.SmartButton bt in this.CollectionButtonLine) bt.Enabled = true; @@ -374,35 +254,9 @@ namespace INT63DC_2C.Controls case DataStore.WeightStatus.CalError: if (rbChecked == true) { - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정 에러"); - this.ParentForm.listBoxHelp.Items.Add("다시 시도해 주세요"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Calibration error."); - this.ParentForm.listBoxHelp.Items.Add("Please try again."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("错误发生,重试"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrace chyba."); - this.ParentForm.listBoxHelp.Items.Add("Zkuste znovu."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Fehler!"); - this.ParentForm.listBoxHelp.Items.Add("Bitte noch einmal versuchen"); - } - else - { + // Help + this.ParentForm.UpdateDisplayHelpCalError(); - } this.ParentForm.CalibrationButtonEnable(true, false, false); foreach (SmartX.SmartButton bt in this.CollectionButtonLine) bt.Enabled = true; @@ -425,40 +279,8 @@ namespace INT63DC_2C.Controls if (bt == null) return; - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정"); - this.ParentForm.listBoxHelp.Items.Add("LANE을 선택 후"); - this.ParentForm.listBoxHelp.Items.Add("시작을 누르세요"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Calibration"); - this.ParentForm.listBoxHelp.Items.Add("After selecting line, "); - this.ParentForm.listBoxHelp.Items.Add("push the [Start] button."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("校准"); - this.ParentForm.listBoxHelp.Items.Add("选择线后,按[开始]按钮。"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrace"); - this.ParentForm.listBoxHelp.Items.Add("Po výběru řádku, "); - this.ParentForm.listBoxHelp.Items.Add("stiskněte tlačítko [Start]."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrierung"); - this.ParentForm.listBoxHelp.Items.Add("Drücken Sie nach der Auswahl der"); - this.ParentForm.listBoxHelp.Items.Add("Zeile die Taste [Start]."); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpInit(); this.ParentForm.CalibrationButtonEnable(true, false, false); } diff --git a/INT63DC_2C/Controls/ControlCalibration7.cs b/INT63DC_2C/Controls/ControlCalibration7.cs index e57c08a..ee0c361 100644 --- a/INT63DC_2C/Controls/ControlCalibration7.cs +++ b/INT63DC_2C/Controls/ControlCalibration7.cs @@ -120,35 +120,8 @@ namespace INT63DC_2C.Controls public void CalibrationBalance() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("분동 계산중 입니다"); - this.ParentForm.listBoxHelp.Items.Add("잠시만 기다리세요"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Caculating..."); - this.ParentForm.listBoxHelp.Items.Add("Wait a minute."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("计算..."); - this.ParentForm.listBoxHelp.Items.Add("请稍等"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Kontroluji hmotnost..."); - this.ParentForm.listBoxHelp.Items.Add("čekejte prosím."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Gewichtsüberprüfung,"); - this.ParentForm.listBoxHelp.Items.Add("bitte warten"); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpBalance(); foreach (SmartButton bt in this.CollectionButtonLine) { @@ -160,35 +133,8 @@ namespace INT63DC_2C.Controls } public void CalibrationStart() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정을 시작합니다."); - this.ParentForm.listBoxHelp.Items.Add("잠시만 기다리세요."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Calibration start."); - this.ParentForm.listBoxHelp.Items.Add("Wait a minute."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("校准开始按钮"); - this.ParentForm.listBoxHelp.Items.Add("请稍等"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("START kalibrace"); - this.ParentForm.listBoxHelp.Items.Add("čekejte prosím."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrierungsstart"); - this.ParentForm.listBoxHelp.Items.Add("bitte warten"); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpStart(); foreach (SmartButton bt in this.CollectionButtonLine) { @@ -202,31 +148,8 @@ namespace INT63DC_2C.Controls } public void CalibrationCancel() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정을 취소합니다"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Cancel the Calibration"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("取消校准"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Zrušení Kalibrace"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Brechen Sie die "); - this.ParentForm.listBoxHelp.Items.Add("Kalibrierung ab"); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpCancel(); foreach (SmartButton bt in this.CollectionButtonLine) { @@ -304,31 +227,10 @@ namespace INT63DC_2C.Controls labelWeight.Text = string.Format("-{0}", this.ParentForm.labelBalanceWeight.Text); labelWeight.ForeColor = this.NormalColor; labelADC.Text = weightData.ADCValue; - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("분동을 올려주세요."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Put the balance weight."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("放平衡重"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Položit vyvážení hmotnosti."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Gewicht auf den Förderer legen"); - } - else - { - } + // Help + this.ParentForm.UpdateDisplayHelpCalStandby(); + this.ParentForm.CalibrationButtonEnable(false, true, true); } break; @@ -345,31 +247,9 @@ namespace INT63DC_2C.Controls case DataStore.WeightStatus.CalFinish: if (rbChecked == true) { - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정이 완료 되었습니다."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Finished."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("完"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Ukončený."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Die Kalibrierung ist abgeschlossen."); - } - else - { + // Help + this.ParentForm.UpdateDisplayHelpCalFinish(); - } this.ParentForm.CalibrationButtonEnable(true, false, false); foreach (SmartX.SmartButton bt in this.CollectionButtonLine) bt.Enabled = true; @@ -381,35 +261,9 @@ namespace INT63DC_2C.Controls case DataStore.WeightStatus.CalError: if (rbChecked == true) { - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정 에러"); - this.ParentForm.listBoxHelp.Items.Add("다시 시도해 주세요"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Calibration error."); - this.ParentForm.listBoxHelp.Items.Add("Please try again."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("错误发生,重试"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrace chyba."); - this.ParentForm.listBoxHelp.Items.Add("Zkuste znovu."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Fehler!"); - this.ParentForm.listBoxHelp.Items.Add("Bitte noch einmal versuchen"); - } - else - { + // Help + this.ParentForm.UpdateDisplayHelpCalError(); - } this.ParentForm.CalibrationButtonEnable(true, false, false); foreach (SmartX.SmartButton bt in this.CollectionButtonLine) bt.Enabled = true; @@ -432,40 +286,8 @@ namespace INT63DC_2C.Controls if (bt == null) return; - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정"); - this.ParentForm.listBoxHelp.Items.Add("LANE을 선택 후"); - this.ParentForm.listBoxHelp.Items.Add("시작을 누르세요"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Calibration"); - this.ParentForm.listBoxHelp.Items.Add("After selecting line, "); - this.ParentForm.listBoxHelp.Items.Add("push the [Start] button."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("校准"); - this.ParentForm.listBoxHelp.Items.Add("选择线后,按[开始]按钮。"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrace"); - this.ParentForm.listBoxHelp.Items.Add("Po výběru řádku, "); - this.ParentForm.listBoxHelp.Items.Add("stiskněte tlačítko [Start]."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrierung"); - this.ParentForm.listBoxHelp.Items.Add("Drücken Sie nach der Auswahl der"); - this.ParentForm.listBoxHelp.Items.Add("Zeile die Taste [Start]."); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpInit(); this.ParentForm.CalibrationButtonEnable(true, false, false); } diff --git a/INT63DC_2C/Controls/ControlCalibration8.cs b/INT63DC_2C/Controls/ControlCalibration8.cs index 0a8beb7..8772575 100644 --- a/INT63DC_2C/Controls/ControlCalibration8.cs +++ b/INT63DC_2C/Controls/ControlCalibration8.cs @@ -125,35 +125,8 @@ namespace INT63DC_2C.Controls public void CalibrationBalance() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("분동 계산중 입니다"); - this.ParentForm.listBoxHelp.Items.Add("잠시만 기다리세요"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Caculating..."); - this.ParentForm.listBoxHelp.Items.Add("Wait a minute."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("计算..."); - this.ParentForm.listBoxHelp.Items.Add("请稍等"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Kontroluji hmotnost..."); - this.ParentForm.listBoxHelp.Items.Add("čekejte prosím."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Gewichtsüberprüfung,"); - this.ParentForm.listBoxHelp.Items.Add("bitte warten"); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpBalance(); foreach (SmartButton bt in this.CollectionButtonLine) { @@ -165,35 +138,8 @@ namespace INT63DC_2C.Controls } public void CalibrationStart() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정을 시작합니다."); - this.ParentForm.listBoxHelp.Items.Add("잠시만 기다리세요."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Calibration start."); - this.ParentForm.listBoxHelp.Items.Add("Wait a minute."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("校准开始按钮"); - this.ParentForm.listBoxHelp.Items.Add("请稍等"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("START kalibrace"); - this.ParentForm.listBoxHelp.Items.Add("čekejte prosím."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrierungsstart"); - this.ParentForm.listBoxHelp.Items.Add("bitte warten"); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpStart(); foreach (SmartButton bt in this.CollectionButtonLine) { @@ -207,32 +153,8 @@ namespace INT63DC_2C.Controls } public void CalibrationCancel() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정을 취소합니다"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Cancel the Calibration"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("取消校准"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Zrušení Kalibrace"); - } - - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Brechen Sie die "); - this.ParentForm.listBoxHelp.Items.Add("Kalibrierung ab"); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpCancel(); foreach (SmartButton bt in this.CollectionButtonLine) { @@ -314,31 +236,10 @@ namespace INT63DC_2C.Controls labelWeight.Text = string.Format("-{0}", this.ParentForm.labelBalanceWeight.Text); labelWeight.ForeColor = this.NormalColor; labelADC.Text = weightData.ADCValue; - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("분동을 올려주세요."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Put the balance weight."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("放平衡重"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Položit vyvážení hmotnosti."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Gewicht auf den Förderer legen"); - } - else - { - } + // Help + this.ParentForm.UpdateDisplayHelpCalStandby(); + this.ParentForm.CalibrationButtonEnable(false, true, true); } break; @@ -355,31 +256,9 @@ namespace INT63DC_2C.Controls case DataStore.WeightStatus.CalFinish: if (rbChecked == true) { - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정이 완료 되었습니다."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Finished."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("完"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Ukončený."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Die Kalibrierung ist abgeschlossen."); - } - else - { + // Help + this.ParentForm.UpdateDisplayHelpCalFinish(); - } this.ParentForm.CalibrationButtonEnable(true, false, false); foreach (SmartX.SmartButton bt in this.CollectionButtonLine) bt.Enabled = true; @@ -391,35 +270,9 @@ namespace INT63DC_2C.Controls case DataStore.WeightStatus.CalError: if (rbChecked == true) { - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정 에러"); - this.ParentForm.listBoxHelp.Items.Add("다시 시도해 주세요"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Calibration error."); - this.ParentForm.listBoxHelp.Items.Add("Please try again."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("错误发生,重试"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrace chyba."); - this.ParentForm.listBoxHelp.Items.Add("Zkuste znovu."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Fehler!"); - this.ParentForm.listBoxHelp.Items.Add("Bitte noch einmal versuchen"); - } - else - { + // Help + this.ParentForm.UpdateDisplayHelpCalError(); - } this.ParentForm.CalibrationButtonEnable(true, false, false); foreach (SmartX.SmartButton bt in this.CollectionButtonLine) bt.Enabled = true; @@ -442,40 +295,8 @@ namespace INT63DC_2C.Controls if (bt == null) return; - this.ParentForm.ClearListBox(); - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.ParentForm.listBoxHelp.Items.Add("중량조정"); - this.ParentForm.listBoxHelp.Items.Add("LANE을 선택 후"); - this.ParentForm.listBoxHelp.Items.Add("시작을 누르세요"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.ParentForm.listBoxHelp.Items.Add("Calibration"); - this.ParentForm.listBoxHelp.Items.Add("After selecting line, "); - this.ParentForm.listBoxHelp.Items.Add("push the [Start] button."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.ParentForm.listBoxHelp.Items.Add("校准"); - this.ParentForm.listBoxHelp.Items.Add("选择线后,按[开始]按钮。"); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrace"); - this.ParentForm.listBoxHelp.Items.Add("Po výběru řádku, "); - this.ParentForm.listBoxHelp.Items.Add("stiskněte tlačítko [Start]."); - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.ParentForm.listBoxHelp.Items.Add("Kalibrierung"); - this.ParentForm.listBoxHelp.Items.Add("Drücken Sie nach der Auswahl der"); - this.ParentForm.listBoxHelp.Items.Add("Zeile die Taste [Start]."); - } - else - { - - } + // Help + this.ParentForm.UpdateDisplayHelpInit(); this.ParentForm.CalibrationButtonEnable(true, false, false); } diff --git a/INT63DC_2C/DataStore.cs b/INT63DC_2C/DataStore.cs index 167465a..249da41 100644 --- a/INT63DC_2C/DataStore.cs +++ b/INT63DC_2C/DataStore.cs @@ -53,7 +53,7 @@ namespace INT63DC_2C Chinese, Czech, German, - Russian, + Japanese, }; public enum UserGroup diff --git a/INT63DC_2C/DialogForms/DialogFormDataStatistics.cs b/INT63DC_2C/DialogForms/DialogFormDataStatistics.cs index 4c30e05..2ab9201 100644 --- a/INT63DC_2C/DialogForms/DialogFormDataStatistics.cs +++ b/INT63DC_2C/DialogForms/DialogFormDataStatistics.cs @@ -43,36 +43,53 @@ namespace INT63DC_2C.DialogForms #region Method private void InitializeDesign() { - if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) + switch (this.ParentForm.ParentForm.SystemConfig.Language) { - this.labelTitleDate.Text = "日期"; - this.labelTitleProductNo.Text = "编号"; - this.labelTitleID.Text = "标识符"; + case DataStore.LanguageID.Korean: + case DataStore.LanguageID.English: + break; + case DataStore.LanguageID.Chinese: + #region Chinese + this.labelTitleDate.Text = "日期"; + this.labelTitleProductNo.Text = "编号"; + this.labelTitleID.Text = "标识符"; - this.buttonRead.Text = "读取"; - this.buttonClose.Text = "关闭"; - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.labelTitleDate.Text = "Datum"; - this.labelTitleProductNo.Text = "Číslo"; - this.labelTitleID.Text = "ID"; + this.buttonRead.Text = "读取"; + this.buttonClose.Text = "关闭"; + #endregion + break; + case DataStore.LanguageID.Czech: + #region Czech + this.labelTitleDate.Text = "Datum"; + this.labelTitleProductNo.Text = "Číslo"; + this.labelTitleID.Text = "ID"; - this.buttonRead.Text = "Přečíst vše"; - this.buttonClose.Text = "Zavřít"; - } - else if (this.ParentForm.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.labelTitleDate.Text = "Datum"; - this.labelTitleProductNo.Text = "Nummer"; - this.labelTitleID.Text = "ID"; + this.buttonRead.Text = "Přečíst vše"; + this.buttonClose.Text = "Zavřít"; + #endregion + break; + case DataStore.LanguageID.German: + #region German + this.labelTitleDate.Text = "Datum"; + this.labelTitleProductNo.Text = "Nummer"; + this.labelTitleID.Text = "ID"; - this.buttonRead.Text = "Alles lesen"; - this.buttonClose.Text = "Schließen"; - } - else - { + this.buttonRead.Text = "Alles lesen"; + this.buttonClose.Text = "Schließen"; + #endregion + break; + case DataStore.LanguageID.Japanese: + #region Japanese + this.labelTitleDate.Text = "日付"; + this.labelTitleProductNo.Text = "番号"; + this.labelTitleID.Text = "ID"; + this.buttonRead.Text = "読む"; + this.buttonClose.Text = "クローズ"; + #endregion + break; + default: + break; } } private void InitializeContnrol() diff --git a/INT63DC_2C/DialogForms/DialogFormLogOn.cs b/INT63DC_2C/DialogForms/DialogFormLogOn.cs index caf6005..f764220 100644 --- a/INT63DC_2C/DialogForms/DialogFormLogOn.cs +++ b/INT63DC_2C/DialogForms/DialogFormLogOn.cs @@ -44,51 +44,66 @@ namespace INT63DC_2C.DialogForms { ImageDll images = new ImageDll(); - if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) + switch (this.ParentForm.SystemConfig.Language) { + case DataStore.LanguageID.Korean: + break; + case DataStore.LanguageID.English: + #region English + this.buttonLogOn.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engMainLoginDisable)); + this.buttonLogOn.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engMainLoginDown)); + this.buttonLogOn.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engMainLoginUp)); + this.buttonCancel.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engMainCancelDisable)); + this.buttonCancel.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engMainCancelDown)); + this.buttonCancel.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engMainCancelUp)); + #endregion + break; + case DataStore.LanguageID.Chinese: + #region Chinese + this.smartForm1.Image = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackgroundUserLogin)); - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.buttonLogOn.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engMainLoginDisable)); - this.buttonLogOn.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engMainLoginDown)); - this.buttonLogOn.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engMainLoginUp)); - this.buttonCancel.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engMainCancelDisable)); - this.buttonCancel.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engMainCancelDown)); - this.buttonCancel.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engMainCancelUp)); - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.smartForm1.Image = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackgroundUserLogin)); - - this.buttonLogOn.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnMainLoginDisable)); - this.buttonLogOn.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnMainLoginDown)); - this.buttonLogOn.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnMainLoginUp)); - this.buttonCancel.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnMainCancelDisable)); - this.buttonCancel.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnMainCancelDown)); - this.buttonCancel.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnMainCancelUp)); - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.buttonLogOn.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engMainLoginDisable)); - this.buttonLogOn.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engMainLoginDown)); - this.buttonLogOn.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engMainLoginUp)); - this.buttonCancel.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeMainCancelDisable)); - this.buttonCancel.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeMainCancelDown)); - this.buttonCancel.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeMainCancelUp)); - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.buttonLogOn.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engMainLoginDisable)); - this.buttonLogOn.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engMainLoginDown)); - this.buttonLogOn.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engMainLoginUp)); - this.buttonCancel.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerMainCancelDisable)); - this.buttonCancel.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerMainCancelDown)); - this.buttonCancel.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerMainCancelUp)); - } - else - { + this.buttonLogOn.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnMainLoginDisable)); + this.buttonLogOn.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnMainLoginDown)); + this.buttonLogOn.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnMainLoginUp)); + this.buttonCancel.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnMainCancelDisable)); + this.buttonCancel.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnMainCancelDown)); + this.buttonCancel.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnMainCancelUp)); + #endregion + break; + case DataStore.LanguageID.Czech: + #region Czech + this.buttonLogOn.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engMainLoginDisable)); + this.buttonLogOn.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engMainLoginDown)); + this.buttonLogOn.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engMainLoginUp)); + this.buttonCancel.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeMainCancelDisable)); + this.buttonCancel.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeMainCancelDown)); + this.buttonCancel.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeMainCancelUp)); + #endregion + break; + case DataStore.LanguageID.German: + #region German + this.buttonLogOn.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engMainLoginDisable)); + this.buttonLogOn.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engMainLoginDown)); + this.buttonLogOn.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engMainLoginUp)); + this.buttonCancel.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerMainCancelDisable)); + this.buttonCancel.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerMainCancelDown)); + this.buttonCancel.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerMainCancelUp)); + #endregion + break; + case DataStore.LanguageID.Japanese: + #region Japanese + this.smartForm1.Image = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackgroundUserLogin)); + this.buttonLogOn.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engMainLoginDisable)); + this.buttonLogOn.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engMainLoginDown)); + this.buttonLogOn.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engMainLoginUp)); + this.buttonCancel.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engMainCancelDisable)); + this.buttonCancel.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engMainCancelDown)); + this.buttonCancel.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engMainCancelUp)); + #endregion + break; + default: + break; } } private void InitializeControl() diff --git a/INT63DC_2C/DialogForms/DialogFormMessage.cs b/INT63DC_2C/DialogForms/DialogFormMessage.cs index f5a864a..1981263 100644 --- a/INT63DC_2C/DialogForms/DialogFormMessage.cs +++ b/INT63DC_2C/DialogForms/DialogFormMessage.cs @@ -18,11 +18,6 @@ namespace INT63DC_2C.DialogForms #endregion #region Constructor - public DialogFormMessage() - { - InitializeComponent(); - } - public DialogFormMessage(string str, DataStore.LanguageID language) { InitializeComponent(); @@ -31,41 +26,40 @@ namespace INT63DC_2C.DialogForms this.labelMessage1.Text = ""; this.labelMessage2.Text = ""; - if (language == DataStore.LanguageID.Korean) + switch (language) { - this.labelErrorCode.Text = "Notice"; - this.labelMessage1.Text = str + "개의 파일이 백업되었습니다."; - } - else if (language == DataStore.LanguageID.English) - { - this.labelErrorCode.Text = "Notice"; - this.labelMessage1.Text = str + " files are backed up"; - } - else if (language == DataStore.LanguageID.Chinese) - { - this.buttonOK.Text = "好"; + case DataStore.LanguageID.Korean: + this.labelErrorCode.Text = "Notice"; + this.labelMessage1.Text = str + "개의 파일이 백업되었습니다."; + break; + case DataStore.LanguageID.English: + this.labelErrorCode.Text = "Notice"; + this.labelMessage1.Text = str + " files are backed up"; + break; + case DataStore.LanguageID.Chinese: + this.buttonOK.Text = "好"; - this.labelErrorCode.Text = "通知"; - this.labelMessage1.Text = str + " 个文件已备份"; - } - else if (language == DataStore.LanguageID.Czech) - { - this.labelErrorCode.Text = "Upozornění"; - this.labelMessage1.Text = "Těchto " + str + " soubory byly zálohovány."; - } - else if (language == DataStore.LanguageID.German) - { - this.buttonOK.Text = "Bestätigen"; - - this.labelErrorCode.Text = "Meldung"; - this.labelMessage1.Text = str + " Dateien wurden gesichert"; - } - else - { + this.labelErrorCode.Text = "通知"; + this.labelMessage1.Text = str + " 个文件已备份"; + break; + case DataStore.LanguageID.Czech: + this.labelErrorCode.Text = "Upozornění"; + this.labelMessage1.Text = "Těchto " + str + " soubory byly zálohovány."; + break; + case DataStore.LanguageID.German: + this.buttonOK.Text = "Bestätigen"; + this.labelErrorCode.Text = "Meldung"; + this.labelMessage1.Text = str + " Dateien wurden gesichert"; + break; + case DataStore.LanguageID.Japanese: + this.labelErrorCode.Text = "注意"; + this.labelMessage1.Text = str + "ファイルがバックアップされた"; + break; + default: + break; } } - public DialogFormMessage(int code, DataStore.LanguageID language) { InitializeComponent(); @@ -74,564 +68,666 @@ namespace INT63DC_2C.DialogForms this.labelMessage1.Text = ""; this.labelMessage2.Text = ""; - if (language == DataStore.LanguageID.Korean) - { - #region 한글 - switch (code) - { - case 1: - this.labelErrorCode.Text = "Error 01"; - this.labelMessage1.Text = "입력범위를 확인하세요."; - break; - case 2: - this.labelErrorCode.Text = "Error 02"; - this.labelMessage1.Text = "최신 프로그램입니다."; - break; - case 3: - this.labelErrorCode.Text = "Error 03"; - this.labelMessage1.Text = "연속으로 불량이 발생했습니다"; - break; - case 4: - this.labelErrorCode.Text = "Error 04"; - this.labelMessage1.Text = "백업할 파일이 없습니다"; - break; - case 5: - this.labelErrorCode.Text = "Error 05"; - this.labelMessage1.Text = "USB메모리가 장착되지 않았습니다"; - break; - case 6: - this.labelErrorCode.Text = "Error 06"; - this.labelMessage1.Text = "제조사에 문의하세요"; - break; - case 7: - this.labelErrorCode.Text = "Error 07"; - this.labelMessage1.Text = "USB에 업데이트 할 파일이 없습니다"; - break; - case 8: - this.labelErrorCode.Text = "Error 08"; - this.labelMessage1.Text = "업데이트 할 실행파일 개수가 많습니다"; - break; - case 9: - this.labelErrorCode.Text = "Error 09"; - this.labelMessage1.Text = "USB에 업데이트 폴더가 없습니다"; - break; - case 10: - this.labelErrorCode.Text = "Error 10"; - this.labelMessage1.Text = "해당 메모리가 장착되지 않았습니다"; - break; - case 11: - this.labelErrorCode.Text = "Info 11"; - this.labelMessage1.Text = "중량 Limit 설정 확인하세요!"; - break; - case 12: - break; - case 13: - break; - case 14: - break; - case 15: - break; - case 16: - break; - case 17: - this.labelErrorCode.Text = "Error 17"; - this.labelMessage1.Text = "초기화를 실행해 주세요"; - break; - case 18: - this.labelErrorCode.Text = "Info 18"; - this.labelMessage1.Text = "전원을 끄고 다시 켜주세요"; - break; - case 19: - break; - case 20: - break; - case 23: - this.labelErrorCode.Text = "Error 23"; - this.labelMessage1.Text = "통신 연결 상태를 확인하세요"; - this.labelMessage2.Text = ""; - break; - case 31: - this.labelErrorCode.Text = "Error 31"; - this.labelMessage1.Text = "유저 파일 에러"; - this.labelMessage2.Text = ""; - break; - case 32: - this.labelErrorCode.Text = "Error 32"; - this.labelMessage1.Text = "ID 확인하세요"; - this.labelMessage2.Text = ""; - break; - case 33: - this.labelErrorCode.Text = "Error 33"; - this.labelMessage1.Text = "Password 확인하세요"; - this.labelMessage2.Text = ""; - break; - case 34: - this.labelErrorCode.Text = "Error 34"; - this.labelMessage1.Text = "동일한 ID가 있습니다!"; - this.labelMessage2.Text = ""; - break; - case 35: - this.labelErrorCode.Text = "Error 35"; - this.labelMessage1.Text = "4~10자 입력 하세요!"; - this.labelMessage2.Text = ""; - break; - default: - this.labelErrorCode.Text = "Error 99"; - this.labelMessage1.Text = "제조사에 문의하세요"; - break; - } - #endregion - } - else if (language == DataStore.LanguageID.English) - { - #region 영문 - switch (code) - { - case 1: - this.labelErrorCode.Text = "Error 01"; - this.labelMessage1.Text = "Confirm input range"; - break; - case 2: - this.labelErrorCode.Text = "Error 02"; - this.labelMessage1.Text = "Application is the lastest"; - break; - case 3: - this.labelErrorCode.Text = "Error 03"; - this.labelMessage1.Text = "Detect Continuous N.G !!"; - break; - case 4: - this.labelErrorCode.Text = "Error 04"; - this.labelMessage1.Text = "There are no Backup files"; - break; - case 5: - this.labelErrorCode.Text = "Error 05"; - this.labelMessage1.Text = "No USB Memory"; - break; - case 6: - this.labelErrorCode.Text = "Error 06"; - this.labelMessage1.Text = "Please contact a manufacturer"; - break; - case 7: - this.labelErrorCode.Text = "Error 07"; - this.labelMessage1.Text = "There are no update files in USB"; - break; - case 8: - this.labelErrorCode.Text = "Error 08"; - this.labelMessage1.Text = "Too much file for update"; - break; - case 9: - this.labelErrorCode.Text = "Error 09"; - this.labelMessage1.Text = "There is no folder has update files in USB"; - break; - case 10: - this.labelErrorCode.Text = "Error 10"; - this.labelMessage1.Text = "There is no MEMORY"; - break; - case 11: - this.labelErrorCode.Text = "Info 11"; - this.labelMessage1.Text = "Confirm input range (Weight Limit)"; - break; - case 12: - break; - case 13: - break; - case 14: - break; - case 15: - break; - case 16: - break; - case 17: - this.labelErrorCode.Text = "Error 17"; - this.labelMessage1.Text = "Please run the initialization"; - break; - case 18: - this.labelErrorCode.Text = "Error 18"; - this.labelMessage1.Text = "Turn the power off and back on."; - break; - case 19: - break; - case 20: - break; - case 23: - this.labelErrorCode.Text = "Error 23"; - this.labelMessage1.Text = "Check the communication connection status"; - this.labelMessage2.Text = ""; - break; - case 31: - this.labelErrorCode.Text = "Error 31"; - this.labelMessage1.Text = "User files error"; - this.labelMessage2.Text = ""; - break; - case 32: - this.labelErrorCode.Text = "Error 32"; - this.labelMessage1.Text = "Check the ID"; - this.labelMessage2.Text = ""; - break; - case 33: - this.labelErrorCode.Text = "Error 33"; - this.labelMessage1.Text = "Check the password"; - this.labelMessage2.Text = ""; - break; - case 34: - this.labelErrorCode.Text = "Error 34"; - this.labelMessage1.Text = "The system already has the same ID"; - this.labelMessage2.Text = ""; - break; - case 35: - this.labelErrorCode.Text = "Error 35"; - this.labelMessage1.Text = "Please enter 4-10 characters"; - this.labelMessage2.Text = ""; - break; - default: - this.labelErrorCode.Text = "Error 99"; - this.labelMessage1.Text = "Please contact a manufacturer"; - break; - } - #endregion - } - else if (language == DataStore.LanguageID.Chinese) - { - #region 중문 - this.buttonOK.Text = "好"; - - switch (code) - { - case 1: - this.labelErrorCode.Text = "錯誤 01"; - this.labelMessage1.Text = "确认输入范围"; - break; - case 2: - this.labelErrorCode.Text = "錯誤 02"; - this.labelMessage1.Text = "最近应用"; - break; - case 3: - this.labelErrorCode.Text = "錯誤 03"; - this.labelMessage1.Text = "测试连续NG"; - break; - case 4: - this.labelErrorCode.Text = "錯誤 04"; - this.labelMessage1.Text = "无支持文件"; - break; - case 5: - this.labelErrorCode.Text = "錯誤 05"; - this.labelMessage1.Text = "无USB存储卡"; - break; - case 6: - this.labelErrorCode.Text = "錯誤 06"; - this.labelMessage1.Text = "请联系厂商"; - break; - case 7: - this.labelErrorCode.Text = "錯誤 07"; - this.labelMessage1.Text = "USB无更新文件"; - break; - case 8: - this.labelErrorCode.Text = "錯誤 08"; - this.labelMessage1.Text = "太多文件需更新"; - break; - case 9: - this.labelErrorCode.Text = "錯誤 09"; - this.labelMessage1.Text = "USB没有文件夹需要更新文件다"; - break; - case 10: - this.labelErrorCode.Text = "錯誤 10"; - this.labelMessage1.Text = "无存储"; - break; - case 11: - break; - case 12: - break; - case 13: - break; - case 14: - break; - case 15: - break; - case 16: - break; - case 17: - this.labelErrorCode.Text = "錯誤 17"; - this.labelMessage1.Text = "运行初始化"; - break; - case 18: - this.labelErrorCode.Text = "錯誤 18"; - this.labelMessage1.Text = "关掉电源,然后在打开电源"; - break; - case 19: - break; - case 20: - break; - case 23: - this.labelErrorCode.Text = "錯誤 23"; - this.labelMessage1.Text = "检查通讯连接状态"; - this.labelMessage2.Text = ""; - break; - case 31: - this.labelErrorCode.Text = "錯誤 31"; - this.labelMessage1.Text = "用户文件错误"; - this.labelMessage2.Text = ""; - break; - case 32: - this.labelErrorCode.Text = "錯誤 32"; - this.labelMessage1.Text = "检查身份证"; - this.labelMessage2.Text = ""; - break; - case 33: - this.labelErrorCode.Text = "錯誤 33"; - this.labelMessage1.Text = "检查密码"; - this.labelMessage2.Text = ""; - break; - case 34: - this.labelErrorCode.Text = "錯誤 34"; - this.labelMessage1.Text = "系统已具有相同的ID"; - this.labelMessage2.Text = ""; - break; - case 35: - this.labelErrorCode.Text = "錯誤 35"; - this.labelMessage1.Text = "请输入4-10个字符"; - this.labelMessage2.Text = ""; - break; - default: - this.labelErrorCode.Text = "錯誤 99"; - this.labelMessage1.Text = "请联系厂商"; - break; - } - #endregion - } - else if (language == DataStore.LanguageID.Czech) - { - #region 체코어 - switch (code) - { - case 1: - this.labelErrorCode.Text = "Chyba 01"; - this.labelMessage1.Text = "Potvrďte zadanou hodnotu"; - this.labelMessage2.Text = ""; - break; - case 2: - this.labelErrorCode.Text = "Chyba 02"; - this.labelMessage1.Text = "Software je aktuální"; - this.labelMessage2.Text = ""; - break; - case 3: - this.labelErrorCode.Text = "Chyba 03"; - this.labelMessage1.Text = "Detekovat neustále chybějící produkt"; - this.labelMessage2.Text = ""; - break; - case 4: - this.labelErrorCode.Text = "Chyba 04"; - this.labelMessage1.Text = "Chybí zálohové soubory"; - this.labelMessage2.Text = ""; - break; - case 5: - this.labelErrorCode.Text = "Chyba 05"; - this.labelMessage1.Text = "USB nepřipojeno"; - this.labelMessage2.Text = ""; - break; - case 6: - this.labelErrorCode.Text = "Chyba 06"; - this.labelMessage1.Text = "Kontaktujte výrobce"; - this.labelMessage2.Text = ""; - break; - case 7: - this.labelErrorCode.Text = "Chyba 07"; - this.labelMessage1.Text = "Na USB chybí aktualizační soubory"; - this.labelMessage2.Text = ""; - break; - case 8: - this.labelErrorCode.Text = "Chyba 08"; - this.labelMessage1.Text = "Příliš mnoho souboru k aktualizaci"; - this.labelMessage2.Text = ""; - break; - case 9: - this.labelErrorCode.Text = "Chyba 09"; - this.labelMessage1.Text = "Na USB disku není žádná složka s aktualizačními soubory."; - this.labelMessage2.Text = ""; - break; - case 10: - this.labelErrorCode.Text = "Chyba 10"; - this.labelMessage1.Text = "Chybí paměť"; - this.labelMessage2.Text = ""; - break; - case 11: - break; - case 12: - break; - case 13: - break; - case 14: - break; - case 15: - break; - case 16: - break; - case 17: - this.labelErrorCode.Text = "Chybě 17"; - this.labelMessage1.Text = "Prosím proveďte spuštění"; - this.labelMessage2.Text = ""; - break; - case 18: - this.labelErrorCode.Text = "Chybě 18"; - this.labelMessage1.Text = "Vypněte a zapněte hlavním vypínačem"; - this.labelMessage2.Text = ""; - break; - case 19: - break; - case 20: - break; - case 23: - this.labelErrorCode.Text = "Chybě 23"; - this.labelMessage1.Text = "Zkontrolujte stav komunikačního připojení"; - this.labelMessage2.Text = ""; - break; - case 31: - this.labelErrorCode.Text = "Chybě 31"; - this.labelMessage1.Text = "Chyba souborů uživatele"; - this.labelMessage2.Text = ""; - break; - case 32: - this.labelErrorCode.Text = "Chybě 32"; - this.labelMessage1.Text = "Zkontrolujte ID"; - this.labelMessage2.Text = ""; - break; - case 33: - this.labelErrorCode.Text = "Chybě 33"; - this.labelMessage1.Text = "Zkontrolujte heslo"; - this.labelMessage2.Text = ""; - break; - case 34: - this.labelErrorCode.Text = "Chybě 34"; - this.labelMessage1.Text = "Systém již má stejné ID"; - this.labelMessage2.Text = ""; - break; - case 35: - this.labelErrorCode.Text = "Chybě 35"; - this.labelMessage1.Text = "Zadejte 4–10 znaků"; - this.labelMessage2.Text = ""; - break; - default: - this.labelErrorCode.Text = "Chybě 99"; - this.labelMessage1.Text = "Kontaktujte výrobce"; - this.labelMessage2.Text = ""; - break; - } - #endregion - } - else if (language == DataStore.LanguageID.German) - { - #region 독일어 - switch (code) - { - case 1: - this.labelErrorCode.Text = "Fehler 01"; - this.labelMessage1.Text = "Den eingegebenen Wert bestätigen"; - break; - case 2: - this.labelErrorCode.Text = "Fehler 02"; - this.labelMessage1.Text = "Software ist up-to-date"; - break; - case 3: - this.labelErrorCode.Text = "Fehler 03"; - this.labelMessage1.Text = "Fehlendes Produkt dauerhaft detektieren"; - break; - case 4: - this.labelErrorCode.Text = "Fehler 04"; - this.labelMessage1.Text = "Sicherungsdateien fehlen"; - break; - case 5: - this.labelErrorCode.Text = "Fehler 05"; - this.labelMessage1.Text = "USB nicht angeschlossen"; - break; - case 6: - this.labelErrorCode.Text = "Fehler 06"; - this.labelMessage1.Text = "Hersteller kontaktieren"; - break; - case 7: - this.labelErrorCode.Text = "Fehler 07"; - this.labelMessage1.Text = "Auf USB fehlen Aktualisierungsdateien"; - break; - case 8: - this.labelErrorCode.Text = "Fehler 08"; - this.labelMessage1.Text = "Zu viele ausführbare Dateien"; - this.labelMessage2.Text = "zum Aktualisieren"; - break; - case 9: - this.labelErrorCode.Text = "Fehler 09"; - this.labelMessage1.Text = "Ordner mit den Aktualisierungsdateien"; - this.labelMessage2.Text = "fehlt auf dem USB"; - break; - case 10: - this.labelErrorCode.Text = "Fehler 10"; - this.labelMessage1.Text = "Speicher/ Datenspeicher fehlt"; - break; - case 11: - break; - case 12: - break; - case 13: - break; - case 14: - break; - case 15: - break; - case 16: - break; - case 17: - this.labelErrorCode.Text = "Fehler 17"; - this.labelMessage1.Text = "Bitte starten"; - break; - case 18: - this.labelErrorCode.Text = "Fehler 18"; - this.labelMessage1.Text = "Mit dem Hauptschalter"; - this.labelMessage2.Text = "aus- und einschalten"; - break; - case 19: - break; - case 20: - break; - case 23: - this.labelErrorCode.Text = "Fehler 23"; - this.labelMessage1.Text = "Überprüfen Sie den Status der"; - this.labelMessage2.Text = "Kommunikationsverbindung"; - break; - case 31: - this.labelErrorCode.Text = "Fehler 31"; - this.labelMessage1.Text = "Fehler der Benutzerdateien"; - this.labelMessage2.Text = ""; - break; - case 32: - this.labelErrorCode.Text = "Fehler 32"; - this.labelMessage1.Text = "Überprüfen Sie die ID"; - this.labelMessage2.Text = ""; - break; - case 33: - this.labelErrorCode.Text = "Fehler 33"; - this.labelMessage1.Text = "Überprüfen Sie das Passwort"; - this.labelMessage2.Text = ""; - break; - case 34: - this.labelErrorCode.Text = "Fehler 34"; - this.labelMessage1.Text = "Das System hat bereits die gleiche ID"; - this.labelMessage2.Text = ""; - break; - case 35: - this.labelErrorCode.Text = "Fehler 35"; - this.labelMessage1.Text = "Bitte geben Sie 4-10 Zeichen ein"; - this.labelMessage2.Text = ""; - break; - default: - this.labelErrorCode.Text = "Fehler 99"; - this.labelMessage1.Text = "Hersteller kontaktieren"; - break; - } - #endregion - } - else + switch (language) { + case DataStore.LanguageID.Korean: + #region 한글 + switch (code) + { + case 1: + this.labelErrorCode.Text = "Error 01"; + this.labelMessage1.Text = "입력범위를 확인하세요."; + break; + case 2: + this.labelErrorCode.Text = "Error 02"; + this.labelMessage1.Text = "최신 프로그램입니다."; + break; + case 3: + this.labelErrorCode.Text = "Error 03"; + this.labelMessage1.Text = "연속으로 불량이 발생했습니다"; + break; + case 4: + this.labelErrorCode.Text = "Error 04"; + this.labelMessage1.Text = "백업할 파일이 없습니다"; + break; + case 5: + this.labelErrorCode.Text = "Error 05"; + this.labelMessage1.Text = "USB메모리가 장착되지 않았습니다"; + break; + case 6: + this.labelErrorCode.Text = "Error 06"; + this.labelMessage1.Text = "제조사에 문의하세요"; + break; + case 7: + this.labelErrorCode.Text = "Error 07"; + this.labelMessage1.Text = "USB에 업데이트 할 파일이 없습니다"; + break; + case 8: + this.labelErrorCode.Text = "Error 08"; + this.labelMessage1.Text = "업데이트 할 실행파일 개수가 많습니다"; + break; + case 9: + this.labelErrorCode.Text = "Error 09"; + this.labelMessage1.Text = "USB에 업데이트 폴더가 없습니다"; + break; + case 10: + this.labelErrorCode.Text = "Error 10"; + this.labelMessage1.Text = "해당 메모리가 장착되지 않았습니다"; + break; + case 11: + this.labelErrorCode.Text = "Info 11"; + this.labelMessage1.Text = "중량 Limit 설정 확인하세요!"; + break; + case 12: + break; + case 13: + break; + case 14: + break; + case 15: + break; + case 16: + break; + case 17: + this.labelErrorCode.Text = "Error 17"; + this.labelMessage1.Text = "초기화를 실행해 주세요"; + break; + case 18: + this.labelErrorCode.Text = "Info 18"; + this.labelMessage1.Text = "전원을 끄고 다시 켜주세요"; + break; + case 19: + break; + case 20: + break; + case 23: + this.labelErrorCode.Text = "Error 23"; + this.labelMessage1.Text = "통신 연결 상태를 확인하세요"; + this.labelMessage2.Text = ""; + break; + case 31: + this.labelErrorCode.Text = "Error 31"; + this.labelMessage1.Text = "유저 파일 에러"; + this.labelMessage2.Text = ""; + break; + case 32: + this.labelErrorCode.Text = "Error 32"; + this.labelMessage1.Text = "ID 확인하세요"; + this.labelMessage2.Text = ""; + break; + case 33: + this.labelErrorCode.Text = "Error 33"; + this.labelMessage1.Text = "Password 확인하세요"; + this.labelMessage2.Text = ""; + break; + case 34: + this.labelErrorCode.Text = "Error 34"; + this.labelMessage1.Text = "동일한 ID가 있습니다!"; + this.labelMessage2.Text = ""; + break; + case 35: + this.labelErrorCode.Text = "Error 35"; + this.labelMessage1.Text = "4~10자 입력 하세요!"; + this.labelMessage2.Text = ""; + break; + default: + this.labelErrorCode.Text = "Error 99"; + this.labelMessage1.Text = "제조사에 문의하세요"; + break; + } + #endregion + break; + case DataStore.LanguageID.English: + #region 영문 + switch (code) + { + case 1: + this.labelErrorCode.Text = "Error 01"; + this.labelMessage1.Text = "Confirm input range"; + break; + case 2: + this.labelErrorCode.Text = "Error 02"; + this.labelMessage1.Text = "Application is the lastest"; + break; + case 3: + this.labelErrorCode.Text = "Error 03"; + this.labelMessage1.Text = "Detect Continuous N.G !!"; + break; + case 4: + this.labelErrorCode.Text = "Error 04"; + this.labelMessage1.Text = "There are no Backup files"; + break; + case 5: + this.labelErrorCode.Text = "Error 05"; + this.labelMessage1.Text = "No USB Memory"; + break; + case 6: + this.labelErrorCode.Text = "Error 06"; + this.labelMessage1.Text = "Please contact a manufacturer"; + break; + case 7: + this.labelErrorCode.Text = "Error 07"; + this.labelMessage1.Text = "There are no update files in USB"; + break; + case 8: + this.labelErrorCode.Text = "Error 08"; + this.labelMessage1.Text = "Too much file for update"; + break; + case 9: + this.labelErrorCode.Text = "Error 09"; + this.labelMessage1.Text = "There is no folder has update files in USB"; + break; + case 10: + this.labelErrorCode.Text = "Error 10"; + this.labelMessage1.Text = "There is no MEMORY"; + break; + case 11: + this.labelErrorCode.Text = "Info 11"; + this.labelMessage1.Text = "Confirm input range (Weight Limit)"; + break; + case 12: + break; + case 13: + break; + case 14: + break; + case 15: + break; + case 16: + break; + case 17: + this.labelErrorCode.Text = "Error 17"; + this.labelMessage1.Text = "Please run the initialization"; + break; + case 18: + this.labelErrorCode.Text = "Error 18"; + this.labelMessage1.Text = "Turn the power off and back on."; + break; + case 19: + break; + case 20: + break; + case 23: + this.labelErrorCode.Text = "Error 23"; + this.labelMessage1.Text = "Check the communication connection status"; + this.labelMessage2.Text = ""; + break; + case 31: + this.labelErrorCode.Text = "Error 31"; + this.labelMessage1.Text = "User files error"; + this.labelMessage2.Text = ""; + break; + case 32: + this.labelErrorCode.Text = "Error 32"; + this.labelMessage1.Text = "Check the ID"; + this.labelMessage2.Text = ""; + break; + case 33: + this.labelErrorCode.Text = "Error 33"; + this.labelMessage1.Text = "Check the password"; + this.labelMessage2.Text = ""; + break; + case 34: + this.labelErrorCode.Text = "Error 34"; + this.labelMessage1.Text = "The system already has the same ID"; + this.labelMessage2.Text = ""; + break; + case 35: + this.labelErrorCode.Text = "Error 35"; + this.labelMessage1.Text = "Please enter 4-10 characters"; + this.labelMessage2.Text = ""; + break; + default: + this.labelErrorCode.Text = "Error 99"; + this.labelMessage1.Text = "Please contact a manufacturer"; + break; + } + #endregion + break; + case DataStore.LanguageID.Chinese: + #region 중문 + this.buttonOK.Text = "好"; + switch (code) + { + case 1: + this.labelErrorCode.Text = "錯誤 01"; + this.labelMessage1.Text = "确认输入范围"; + break; + case 2: + this.labelErrorCode.Text = "錯誤 02"; + this.labelMessage1.Text = "最近应用"; + break; + case 3: + this.labelErrorCode.Text = "錯誤 03"; + this.labelMessage1.Text = "测试连续NG"; + break; + case 4: + this.labelErrorCode.Text = "錯誤 04"; + this.labelMessage1.Text = "无支持文件"; + break; + case 5: + this.labelErrorCode.Text = "錯誤 05"; + this.labelMessage1.Text = "无USB存储卡"; + break; + case 6: + this.labelErrorCode.Text = "錯誤 06"; + this.labelMessage1.Text = "请联系厂商"; + break; + case 7: + this.labelErrorCode.Text = "錯誤 07"; + this.labelMessage1.Text = "USB无更新文件"; + break; + case 8: + this.labelErrorCode.Text = "錯誤 08"; + this.labelMessage1.Text = "太多文件需更新"; + break; + case 9: + this.labelErrorCode.Text = "錯誤 09"; + this.labelMessage1.Text = "USB没有文件夹需要更新文件다"; + break; + case 10: + this.labelErrorCode.Text = "錯誤 10"; + this.labelMessage1.Text = "无存储"; + break; + case 11: + break; + case 12: + break; + case 13: + break; + case 14: + break; + case 15: + break; + case 16: + break; + case 17: + this.labelErrorCode.Text = "錯誤 17"; + this.labelMessage1.Text = "运行初始化"; + break; + case 18: + this.labelErrorCode.Text = "錯誤 18"; + this.labelMessage1.Text = "关掉电源,然后在打开电源"; + break; + case 19: + break; + case 20: + break; + case 23: + this.labelErrorCode.Text = "錯誤 23"; + this.labelMessage1.Text = "检查通讯连接状态"; + this.labelMessage2.Text = ""; + break; + case 31: + this.labelErrorCode.Text = "錯誤 31"; + this.labelMessage1.Text = "用户文件错误"; + this.labelMessage2.Text = ""; + break; + case 32: + this.labelErrorCode.Text = "錯誤 32"; + this.labelMessage1.Text = "检查身份证"; + this.labelMessage2.Text = ""; + break; + case 33: + this.labelErrorCode.Text = "錯誤 33"; + this.labelMessage1.Text = "检查密码"; + this.labelMessage2.Text = ""; + break; + case 34: + this.labelErrorCode.Text = "錯誤 34"; + this.labelMessage1.Text = "系统已具有相同的ID"; + this.labelMessage2.Text = ""; + break; + case 35: + this.labelErrorCode.Text = "錯誤 35"; + this.labelMessage1.Text = "请输入4-10个字符"; + this.labelMessage2.Text = ""; + break; + default: + this.labelErrorCode.Text = "錯誤 99"; + this.labelMessage1.Text = "请联系厂商"; + break; + } + #endregion + break; + case DataStore.LanguageID.Czech: + #region 체코어 + switch (code) + { + case 1: + this.labelErrorCode.Text = "Chyba 01"; + this.labelMessage1.Text = "Potvrďte zadanou hodnotu"; + this.labelMessage2.Text = ""; + break; + case 2: + this.labelErrorCode.Text = "Chyba 02"; + this.labelMessage1.Text = "Software je aktuální"; + this.labelMessage2.Text = ""; + break; + case 3: + this.labelErrorCode.Text = "Chyba 03"; + this.labelMessage1.Text = "Detekovat neustále chybějící produkt"; + this.labelMessage2.Text = ""; + break; + case 4: + this.labelErrorCode.Text = "Chyba 04"; + this.labelMessage1.Text = "Chybí zálohové soubory"; + this.labelMessage2.Text = ""; + break; + case 5: + this.labelErrorCode.Text = "Chyba 05"; + this.labelMessage1.Text = "USB nepřipojeno"; + this.labelMessage2.Text = ""; + break; + case 6: + this.labelErrorCode.Text = "Chyba 06"; + this.labelMessage1.Text = "Kontaktujte výrobce"; + this.labelMessage2.Text = ""; + break; + case 7: + this.labelErrorCode.Text = "Chyba 07"; + this.labelMessage1.Text = "Na USB chybí aktualizační soubory"; + this.labelMessage2.Text = ""; + break; + case 8: + this.labelErrorCode.Text = "Chyba 08"; + this.labelMessage1.Text = "Příliš mnoho souboru k aktualizaci"; + this.labelMessage2.Text = ""; + break; + case 9: + this.labelErrorCode.Text = "Chyba 09"; + this.labelMessage1.Text = "Na USB disku není žádná složka s aktualizačními soubory."; + this.labelMessage2.Text = ""; + break; + case 10: + this.labelErrorCode.Text = "Chyba 10"; + this.labelMessage1.Text = "Chybí paměť"; + this.labelMessage2.Text = ""; + break; + case 11: + break; + case 12: + break; + case 13: + break; + case 14: + break; + case 15: + break; + case 16: + break; + case 17: + this.labelErrorCode.Text = "Chybě 17"; + this.labelMessage1.Text = "Prosím proveďte spuštění"; + this.labelMessage2.Text = ""; + break; + case 18: + this.labelErrorCode.Text = "Chybě 18"; + this.labelMessage1.Text = "Vypněte a zapněte hlavním vypínačem"; + this.labelMessage2.Text = ""; + break; + case 19: + break; + case 20: + break; + case 23: + this.labelErrorCode.Text = "Chybě 23"; + this.labelMessage1.Text = "Zkontrolujte stav komunikačního připojení"; + this.labelMessage2.Text = ""; + break; + case 31: + this.labelErrorCode.Text = "Chybě 31"; + this.labelMessage1.Text = "Chyba souborů uživatele"; + this.labelMessage2.Text = ""; + break; + case 32: + this.labelErrorCode.Text = "Chybě 32"; + this.labelMessage1.Text = "Zkontrolujte ID"; + this.labelMessage2.Text = ""; + break; + case 33: + this.labelErrorCode.Text = "Chybě 33"; + this.labelMessage1.Text = "Zkontrolujte heslo"; + this.labelMessage2.Text = ""; + break; + case 34: + this.labelErrorCode.Text = "Chybě 34"; + this.labelMessage1.Text = "Systém již má stejné ID"; + this.labelMessage2.Text = ""; + break; + case 35: + this.labelErrorCode.Text = "Chybě 35"; + this.labelMessage1.Text = "Zadejte 4–10 znaků"; + this.labelMessage2.Text = ""; + break; + default: + this.labelErrorCode.Text = "Chybě 99"; + this.labelMessage1.Text = "Kontaktujte výrobce"; + this.labelMessage2.Text = ""; + break; + } + #endregion + break; + case DataStore.LanguageID.German: + #region 독일어 + switch (code) + { + case 1: + this.labelErrorCode.Text = "Fehler 01"; + this.labelMessage1.Text = "Den eingegebenen Wert bestätigen"; + break; + case 2: + this.labelErrorCode.Text = "Fehler 02"; + this.labelMessage1.Text = "Software ist up-to-date"; + break; + case 3: + this.labelErrorCode.Text = "Fehler 03"; + this.labelMessage1.Text = "Fehlendes Produkt dauerhaft detektieren"; + break; + case 4: + this.labelErrorCode.Text = "Fehler 04"; + this.labelMessage1.Text = "Sicherungsdateien fehlen"; + break; + case 5: + this.labelErrorCode.Text = "Fehler 05"; + this.labelMessage1.Text = "USB nicht angeschlossen"; + break; + case 6: + this.labelErrorCode.Text = "Fehler 06"; + this.labelMessage1.Text = "Hersteller kontaktieren"; + break; + case 7: + this.labelErrorCode.Text = "Fehler 07"; + this.labelMessage1.Text = "Auf USB fehlen Aktualisierungsdateien"; + break; + case 8: + this.labelErrorCode.Text = "Fehler 08"; + this.labelMessage1.Text = "Zu viele ausführbare Dateien"; + this.labelMessage2.Text = "zum Aktualisieren"; + break; + case 9: + this.labelErrorCode.Text = "Fehler 09"; + this.labelMessage1.Text = "Ordner mit den Aktualisierungsdateien"; + this.labelMessage2.Text = "fehlt auf dem USB"; + break; + case 10: + this.labelErrorCode.Text = "Fehler 10"; + this.labelMessage1.Text = "Speicher/ Datenspeicher fehlt"; + break; + case 11: + break; + case 12: + break; + case 13: + break; + case 14: + break; + case 15: + break; + case 16: + break; + case 17: + this.labelErrorCode.Text = "Fehler 17"; + this.labelMessage1.Text = "Bitte starten"; + break; + case 18: + this.labelErrorCode.Text = "Fehler 18"; + this.labelMessage1.Text = "Mit dem Hauptschalter"; + this.labelMessage2.Text = "aus- und einschalten"; + break; + case 19: + break; + case 20: + break; + case 23: + this.labelErrorCode.Text = "Fehler 23"; + this.labelMessage1.Text = "Überprüfen Sie den Status der"; + this.labelMessage2.Text = "Kommunikationsverbindung"; + break; + case 31: + this.labelErrorCode.Text = "Fehler 31"; + this.labelMessage1.Text = "Fehler der Benutzerdateien"; + this.labelMessage2.Text = ""; + break; + case 32: + this.labelErrorCode.Text = "Fehler 32"; + this.labelMessage1.Text = "Überprüfen Sie die ID"; + this.labelMessage2.Text = ""; + break; + case 33: + this.labelErrorCode.Text = "Fehler 33"; + this.labelMessage1.Text = "Überprüfen Sie das Passwort"; + this.labelMessage2.Text = ""; + break; + case 34: + this.labelErrorCode.Text = "Fehler 34"; + this.labelMessage1.Text = "Das System hat bereits die gleiche ID"; + this.labelMessage2.Text = ""; + break; + case 35: + this.labelErrorCode.Text = "Fehler 35"; + this.labelMessage1.Text = "Bitte geben Sie 4-10 Zeichen ein"; + this.labelMessage2.Text = ""; + break; + default: + this.labelErrorCode.Text = "Fehler 99"; + this.labelMessage1.Text = "Hersteller kontaktieren"; + break; + } + #endregion + break; + case DataStore.LanguageID.Japanese: + #region Japanese + switch (code) + { + case 1: + this.labelErrorCode.Text = "エラㅡ 01"; + this.labelMessage1.Text = "入力範囲を確認する"; + break; + case 2: + this.labelErrorCode.Text = "エラㅡ 02"; + this.labelMessage1.Text = "アプリケㅡションは最新である"; + break; + case 3: + this.labelErrorCode.Text = "エラㅡ 03"; + this.labelMessage1.Text = "連続NGを検出する"; + break; + case 4: + this.labelErrorCode.Text = "エラㅡ 04"; + this.labelMessage1.Text = "バックアップファイルがない"; + break; + case 5: + this.labelErrorCode.Text = "エラㅡ 05"; + this.labelMessage1.Text = "USBメモリなし"; + break; + case 6: + this.labelErrorCode.Text = "エラㅡ 06"; + this.labelMessage1.Text = "メㅡカㅡにお問い合わせください"; + break; + case 7: + this.labelErrorCode.Text = "エラㅡ 07"; + this.labelMessage1.Text = "USBに更新ファイルがない"; + break; + case 8: + this.labelErrorCode.Text = "エラㅡ 08"; + this.labelMessage1.Text = "更新用ファイルが多すぎる"; + break; + case 9: + this.labelErrorCode.Text = "エラㅡ 09"; + this.labelMessage1.Text = "USBに更新ファイルが入ったフォルダㅡがない"; + break; + case 10: + this.labelErrorCode.Text = "エラㅡ 10"; + this.labelMessage1.Text = "メモリㅡがない"; + break; + case 11: + this.labelErrorCode.Text = "注意 11"; + this.labelMessage1.Text = "重量制限設定を確認してください!"; + break; + case 12: + break; + case 13: + break; + case 14: + break; + case 15: + break; + case 16: + break; + case 17: + this.labelErrorCode.Text = "エラㅡ 17"; + this.labelMessage1.Text = "初期化を実行してください"; + break; + case 18: + this.labelErrorCode.Text = "注意 18"; + this.labelMessage1.Text = "電源をOFFにしてから電源をONにする"; + break; + case 19: + break; + case 20: + break; + case 23: + this.labelErrorCode.Text = "エラㅡ 23"; + this.labelMessage1.Text = "通信接続状態を確認する"; + this.labelMessage2.Text = ""; + break; + case 31: + this.labelErrorCode.Text = "エラㅡ 31"; + this.labelMessage1.Text = "ユㅡザㅡファイルエラㅡ"; + this.labelMessage2.Text = ""; + break; + case 32: + this.labelErrorCode.Text = "エラㅡ 32"; + this.labelMessage1.Text = "IDを確認する"; + this.labelMessage2.Text = ""; + break; + case 33: + this.labelErrorCode.Text = "エラㅡ 33"; + this.labelMessage1.Text = "パスワㅡドを確認する"; + this.labelMessage2.Text = ""; + break; + case 34: + this.labelErrorCode.Text = "エラㅡ 34"; + this.labelMessage1.Text = "システムに既に同じIDがある"; + this.labelMessage2.Text = ""; + break; + case 35: + this.labelErrorCode.Text = "エラㅡ 35"; + this.labelMessage1.Text = "4~10文字を入力してください"; + this.labelMessage2.Text = ""; + break; + default: + this.labelErrorCode.Text = "エラㅡ 99"; + this.labelMessage1.Text = "メㅡカㅡにお問い合わせください"; + break; + } + #endregion + break; + default: + break; } } - public DialogFormMessage(int code, DataStore.LanguageID language, FormMain parent) { InitializeComponent(); @@ -642,91 +738,102 @@ namespace INT63DC_2C.DialogForms this.labelMessage1.Text = ""; this.labelMessage2.Text = ""; - if (language == DataStore.LanguageID.Korean) - { - #region 한글 - switch (code) - { - case 11: - this.labelErrorCode.Text = "Error 11"; - this.labelMessage1.Text = "입력센서 에러에 의해 정지하였습니다."; - break; - default: - this.labelErrorCode.Text = "Error 99"; - this.labelMessage1.Text = "제조사에 문의하세요"; - break; - } - #endregion - } - else if (language == DataStore.LanguageID.English) - { - #region 영문 - switch (code) - { - case 11: - this.labelErrorCode.Text = "Error 11"; - this.labelMessage1.Text = "Emergency stop due to entry sensor error"; - break; - default: - this.labelErrorCode.Text = "Error 99"; - this.labelMessage1.Text = "Please contact a manufacturer"; - break; - } - #endregion - } - else if (language == DataStore.LanguageID.Chinese) - { - #region 중문 - this.buttonOK.Text = "好"; - - switch (code) - { - case 11: - this.labelErrorCode.Text = "錯誤 11"; - this.labelMessage1.Text = "由于进入传感器错误导致紧急停止"; - break; - default: - this.labelErrorCode.Text = "錯誤 99"; - this.labelMessage1.Text = "请联系厂商"; - break; - } - #endregion - } - else if (language == DataStore.LanguageID.Czech) - { - #region 체코어 - switch (code) - { - case 11: - this.labelErrorCode.Text = "Chybě 11"; - this.labelMessage1.Text = "Nouzové zastavení z důvodu chyby snímače vstupu"; - break; - default: - this.labelErrorCode.Text = "Chybě 99"; - this.labelMessage1.Text = "Kontaktujte výrobce"; - break; - } - #endregion - } - else if (language == DataStore.LanguageID.German) - { - #region 독일어 - switch (code) - { - case 11: - this.labelErrorCode.Text = "Fehler 11"; - this.labelMessage1.Text = "Notstopp aufgrund eines Eintrittssensorfehlers"; - break; - default: - this.labelErrorCode.Text = "Fehler 99"; - this.labelMessage1.Text = "Hersteller kontaktieren"; - break; - } - #endregion - } - else + switch (language) { + case DataStore.LanguageID.Korean: + #region 한글 + switch (code) + { + case 11: + this.labelErrorCode.Text = "Error 11"; + this.labelMessage1.Text = "입력센서 에러에 의해 정지하였습니다."; + break; + default: + this.labelErrorCode.Text = "Error 99"; + this.labelMessage1.Text = "제조사에 문의하세요"; + break; + } + #endregion + break; + case DataStore.LanguageID.English: + #region 영문 + switch (code) + { + case 11: + this.labelErrorCode.Text = "Error 11"; + this.labelMessage1.Text = "Emergency stop due to entry sensor error"; + break; + default: + this.labelErrorCode.Text = "Error 99"; + this.labelMessage1.Text = "Please contact a manufacturer"; + break; + } + #endregion + break; + case DataStore.LanguageID.Chinese: + #region 중문 + this.buttonOK.Text = "好"; + switch (code) + { + case 11: + this.labelErrorCode.Text = "錯誤 11"; + this.labelMessage1.Text = "由于进入传感器错误导致紧急停止"; + break; + default: + this.labelErrorCode.Text = "錯誤 99"; + this.labelMessage1.Text = "请联系厂商"; + break; + } + #endregion + break; + case DataStore.LanguageID.Czech: + #region 체코어 + switch (code) + { + case 11: + this.labelErrorCode.Text = "Chybě 11"; + this.labelMessage1.Text = "Nouzové zastavení z důvodu chyby snímače vstupu"; + break; + default: + this.labelErrorCode.Text = "Chybě 99"; + this.labelMessage1.Text = "Kontaktujte výrobce"; + break; + } + #endregion + break; + case DataStore.LanguageID.German: + #region 독일어 + switch (code) + { + case 11: + this.labelErrorCode.Text = "Fehler 11"; + this.labelMessage1.Text = "Notstopp aufgrund eines Eintrittssensorfehlers"; + break; + default: + this.labelErrorCode.Text = "Fehler 99"; + this.labelMessage1.Text = "Hersteller kontaktieren"; + break; + } + #endregion + break; + case DataStore.LanguageID.Japanese: + #region Japanese + switch (code) + { + case 11: + this.labelErrorCode.Text = "エラㅡ 11"; + this.labelMessage1.Text = "エントリㅡセンサㅡ異常による緊急停止"; + break; + default: + this.labelErrorCode.Text = "エラㅡ 99"; + this.labelMessage1.Text = "メㅡカㅡにお問い合わせください"; + break; + } + #endregion + break; + default: + break; } } #endregion diff --git a/INT63DC_2C/DialogForms/DialogFormNumKeyPad.cs b/INT63DC_2C/DialogForms/DialogFormNumKeyPad.cs index a4f6ae7..c293fb5 100644 --- a/INT63DC_2C/DialogForms/DialogFormNumKeyPad.cs +++ b/INT63DC_2C/DialogForms/DialogFormNumKeyPad.cs @@ -78,30 +78,37 @@ namespace INT63DC_2C.DialogForms #region Method private void InitializeDesign(DataStore.LanguageID language) { - if (language == DataStore.LanguageID.Chinese) + switch (language) { - this.label1.Text = "键盘"; + case DataStore.LanguageID.Korean: + case DataStore.LanguageID.English: + break; + case DataStore.LanguageID.Chinese: + this.label1.Text = "键盘"; - this.buttonCancel.Text = "取消"; - this.buttonEnter.Text = "确认"; - } - else if (language == DataStore.LanguageID.Czech) - { - this.label1.Text = "Klávesnice"; + this.buttonCancel.Text = "取消"; + this.buttonEnter.Text = "确认"; + break; + case DataStore.LanguageID.Czech: + this.label1.Text = "Klávesnice"; - this.buttonCancel.Text = "Zrušit"; - this.buttonEnter.Text = "Enter"; - } - else if (language == DataStore.LanguageID.German) - { - this.label1.Text = "Tastatur"; + this.buttonCancel.Text = "Zrušit"; + this.buttonEnter.Text = "Enter"; + break; + case DataStore.LanguageID.German: + this.label1.Text = "Tastatur"; - this.buttonCancel.Text = "X"; - this.buttonEnter.Text = "Enter"; - } - else - { + this.buttonCancel.Text = "X"; + this.buttonEnter.Text = "Enter"; + break; + case DataStore.LanguageID.Japanese: + this.label1.Text = "キㅡパッド"; + this.buttonCancel.Text = "ESC"; + this.buttonEnter.Text = "入力"; + break; + default: + break; } } private void InitializeContnrol() diff --git a/INT63DC_2C/DialogForms/DialogFormPasswordKeyPad.cs b/INT63DC_2C/DialogForms/DialogFormPasswordKeyPad.cs index de1f14b..4cf98e5 100644 --- a/INT63DC_2C/DialogForms/DialogFormPasswordKeyPad.cs +++ b/INT63DC_2C/DialogForms/DialogFormPasswordKeyPad.cs @@ -116,30 +116,41 @@ namespace INT63DC_2C.DialogForms private void InitializeDesign(DataStore.LanguageID language) { - if (language == DataStore.LanguageID.Chinese) + switch (language) { - this.labelSubject.Text = "密码"; + case DataStore.LanguageID.Korean: + case DataStore.LanguageID.English: + this.labelSubject.Text = "Password"; - this.buttonCancel.Text = "取消"; - this.buttonEnter.Text = "确认"; - } - else if (language == DataStore.LanguageID.Czech) - { - this.labelSubject.Text = "Klávesnice"; + this.buttonCancel.Text = "ESC"; + this.buttonEnter.Text = "Enter"; + break; + case DataStore.LanguageID.Chinese: + this.labelSubject.Text = "密码"; - this.buttonCancel.Text = "Zrušit"; - this.buttonEnter.Text = "Enter"; - } - else if (language == DataStore.LanguageID.German) - { - this.labelSubject.Text = "Passwort"; + this.buttonCancel.Text = "取消"; + this.buttonEnter.Text = "确认"; + break; + case DataStore.LanguageID.Czech: + this.labelSubject.Text = "Klávesnice"; - this.buttonCancel.Text = "X"; - this.buttonEnter.Text = "Enter"; - } - else - { + this.buttonCancel.Text = "Zrušit"; + this.buttonEnter.Text = "Enter"; + break; + case DataStore.LanguageID.German: + this.labelSubject.Text = "Passwort"; + this.buttonCancel.Text = "X"; + this.buttonEnter.Text = "Enter"; + break; + case DataStore.LanguageID.Japanese: + this.labelSubject.Text = "パスワード"; + + this.buttonCancel.Text = "ESC"; + this.buttonEnter.Text = "入力"; + break; + default: + break; } } private void InitializeContnrol() diff --git a/INT63DC_2C/DialogForms/DialogFormYesNo.cs b/INT63DC_2C/DialogForms/DialogFormYesNo.cs index 0341612..f2237b1 100644 --- a/INT63DC_2C/DialogForms/DialogFormYesNo.cs +++ b/INT63DC_2C/DialogForms/DialogFormYesNo.cs @@ -29,296 +29,359 @@ namespace INT63DC_2C.DialogForms this.labelMessage1.Text = ""; this.labelMessage2.Text = ""; - if (language == DataStore.LanguageID.Korean) + switch (language) { - switch (ok) - { - case 1: - this.labelErrorCode.Text = ""; - this.labelMessage1.Text = "예전 DLL로 되돌리시겠습니까?"; - break; - case 2: - this.labelErrorCode.Text = ""; - this.labelMessage1.Text = "언어를 변경하시겠습니까?"; - break; - case 3: - this.labelErrorCode.Text = "업데이트"; - this.labelMessage1.Text = "새 버전으로 업데이트됩니다."; - break; - case 4: - break; - case 5: - this.labelErrorCode.Text = "공장초기화"; - this.labelMessage1.Text = "설정된 모든 데이터가 초기화됩니다."; - break; - case 6: - break; - case 7: - break; - case 8: - this.labelErrorCode.Text = "소거"; - this.labelMessage1.Text = "카운트 값을 소거 하시겠습니까?"; - break; - case 9: - this.labelErrorCode.Text = "모터 다운로드"; - this.labelMessage1.Text = "현재 값을 다운로드 하시겠습니까?"; - break; - case 10: - break; - case 11: - this.labelErrorCode.Text = "모터 다운로드"; - this.labelMessage1.Text = "모터에 프로그램을 다운로드 하시겠습니까?"; - break; - case 12: - this.labelErrorCode.Text = "로그인"; - this.labelMessage1.Text = "Log out 하시겠습니까?"; - break; - case 13: - this.labelErrorCode.Text = "로그인"; - this.labelMessage1.Text = "유저 등록 하시겠습니까?"; - break; - case 14: - this.labelErrorCode.Text = "로그인"; - this.labelMessage1.Text = "유저 삭제 하시겠습니까?"; - break; - default: - break; - } - } - else if (language == DataStore.LanguageID.English) - { - switch (ok) - { - case 1: - this.labelErrorCode.Text = ""; - this.labelMessage1.Text = "Do you want to revert to the previous DLL?"; - break; - case 2: - this.labelErrorCode.Text = ""; - this.labelMessage1.Text = "Do you change the language?"; - break; - case 3: - this.labelErrorCode.Text = "Update"; - this.labelMessage1.Text = "Now appilcation program update"; - break; - case 4: - break; - case 5: - this.labelErrorCode.Text = "Initialization"; - this.labelMessage1.Text = "All datas will be initialized"; - break; - case 6: - break; - case 7: - break; - case 8: - this.labelErrorCode.Text = "Clear"; - this.labelMessage1.Text = "Erase all count?"; - break; - case 9: - this.labelErrorCode.Text = "Motor download"; - this.labelMessage1.Text = "Do you want to download the current value?"; - break; - case 10: - break; - case 11: - this.labelErrorCode.Text = "Motor download"; - this.labelMessage1.Text = "Do you want to download the program?"; - break; - case 12: - this.labelErrorCode.Text = "Login"; - this.labelMessage1.Text = "Do you want to log out?"; - break; - case 13: - this.labelErrorCode.Text = "Login"; - this.labelMessage1.Text = "Do you want to register the user?"; - break; - case 14: - this.labelErrorCode.Text = "Login"; - this.labelMessage1.Text = "Do you want to Delete the user?"; - break; - default: - break; - } - } - else if (language == DataStore.LanguageID.Chinese) - { - this.buttonYes.Text = "是"; - this.buttonNo.Text = "否"; + case DataStore.LanguageID.Korean: + #region Korean + switch (ok) + { + case 1: + this.labelErrorCode.Text = ""; + this.labelMessage1.Text = "예전 DLL로 되돌리시겠습니까?"; + break; + case 2: + this.labelErrorCode.Text = ""; + this.labelMessage1.Text = "언어를 변경하시겠습니까?"; + break; + case 3: + this.labelErrorCode.Text = "업데이트"; + this.labelMessage1.Text = "새 버전으로 업데이트됩니다."; + break; + case 4: + break; + case 5: + this.labelErrorCode.Text = "공장초기화"; + this.labelMessage1.Text = "설정된 모든 데이터가 초기화됩니다."; + break; + case 6: + break; + case 7: + break; + case 8: + this.labelErrorCode.Text = "소거"; + this.labelMessage1.Text = "카운트 값을 소거 하시겠습니까?"; + break; + case 9: + this.labelErrorCode.Text = "모터 다운로드"; + this.labelMessage1.Text = "현재 값을 다운로드 하시겠습니까?"; + break; + case 10: + break; + case 11: + this.labelErrorCode.Text = "모터 다운로드"; + this.labelMessage1.Text = "모터에 프로그램을 다운로드 하시겠습니까?"; + break; + case 12: + this.labelErrorCode.Text = "로그인"; + this.labelMessage1.Text = "Log out 하시겠습니까?"; + break; + case 13: + this.labelErrorCode.Text = "로그인"; + this.labelMessage1.Text = "유저 등록 하시겠습니까?"; + break; + case 14: + this.labelErrorCode.Text = "로그인"; + this.labelMessage1.Text = "유저 삭제 하시겠습니까?"; + break; + default: + break; + } + #endregion + break; + case DataStore.LanguageID.English: + #region English + switch (ok) + { + case 1: + this.labelErrorCode.Text = ""; + this.labelMessage1.Text = "Do you want to revert to the previous DLL?"; + break; + case 2: + this.labelErrorCode.Text = ""; + this.labelMessage1.Text = "Do you change the language?"; + break; + case 3: + this.labelErrorCode.Text = "Update"; + this.labelMessage1.Text = "Now appilcation program update"; + break; + case 4: + break; + case 5: + this.labelErrorCode.Text = "Initialization"; + this.labelMessage1.Text = "All datas will be initialized"; + break; + case 6: + break; + case 7: + break; + case 8: + this.labelErrorCode.Text = "Clear"; + this.labelMessage1.Text = "Erase all count?"; + break; + case 9: + this.labelErrorCode.Text = "Motor download"; + this.labelMessage1.Text = "Do you want to download the current value?"; + break; + case 10: + break; + case 11: + this.labelErrorCode.Text = "Motor download"; + this.labelMessage1.Text = "Do you want to download the program?"; + break; + case 12: + this.labelErrorCode.Text = "Login"; + this.labelMessage1.Text = "Do you want to log out?"; + break; + case 13: + this.labelErrorCode.Text = "Login"; + this.labelMessage1.Text = "Do you want to register the user?"; + break; + case 14: + this.labelErrorCode.Text = "Login"; + this.labelMessage1.Text = "Do you want to Delete the user?"; + break; + default: + break; + } + #endregion + break; + case DataStore.LanguageID.Chinese: + #region Chinese + this.buttonYes.Text = "是"; + this.buttonNo.Text = "否"; - switch (ok) - { - case 1: - this.labelErrorCode.Text = ""; - this.labelMessage1.Text = "你想转变到之前的DLL吗"; - break; - case 2: - this.labelErrorCode.Text = ""; - this.labelMessage1.Text = "想更换语言吗?"; - break; - case 3: - this.labelErrorCode.Text = "更新"; - this.labelMessage1.Text = "现在应用程序更新"; - break; - case 4: - break; - case 5: - this.labelErrorCode.Text = "回复出厂设置"; - this.labelMessage1.Text = "所有数据初始化"; - break; - case 6: - break; - case 7: - break; - case 8: - this.labelErrorCode.Text = "消除"; - this.labelMessage1.Text = "您确定清除计数值吗?"; - break; - case 9: - this.labelErrorCode.Text = "下载"; - this.labelMessage1.Text = "您确定下载当前值吗?"; - break; - case 10: - break; - case 11: - this.labelErrorCode.Text = "下载"; - this.labelMessage1.Text = "你想下载程序吗?"; - break; - case 12: - this.labelErrorCode.Text = "登录"; - this.labelMessage1.Text = "你想注销吗?"; - break; - case 13: - this.labelErrorCode.Text = "登录"; - this.labelMessage1.Text = "你想注册用户吗?"; - break; - case 14: - this.labelErrorCode.Text = "登录"; - this.labelMessage1.Text = "要删除用户吗?"; - break; - default: - break; - } - } - else if (language == DataStore.LanguageID.Czech) - { - this.buttonYes.Text = "Ano"; - this.buttonNo.Text = "Ne"; + switch (ok) + { + case 1: + this.labelErrorCode.Text = ""; + this.labelMessage1.Text = "你想转变到之前的DLL吗"; + break; + case 2: + this.labelErrorCode.Text = ""; + this.labelMessage1.Text = "想更换语言吗?"; + break; + case 3: + this.labelErrorCode.Text = "更新"; + this.labelMessage1.Text = "现在应用程序更新"; + break; + case 4: + break; + case 5: + this.labelErrorCode.Text = "回复出厂设置"; + this.labelMessage1.Text = "所有数据初始化"; + break; + case 6: + break; + case 7: + break; + case 8: + this.labelErrorCode.Text = "消除"; + this.labelMessage1.Text = "您确定清除计数值吗?"; + break; + case 9: + this.labelErrorCode.Text = "下载"; + this.labelMessage1.Text = "您确定下载当前值吗?"; + break; + case 10: + break; + case 11: + this.labelErrorCode.Text = "下载"; + this.labelMessage1.Text = "你想下载程序吗?"; + break; + case 12: + this.labelErrorCode.Text = "登录"; + this.labelMessage1.Text = "你想注销吗?"; + break; + case 13: + this.labelErrorCode.Text = "登录"; + this.labelMessage1.Text = "你想注册用户吗?"; + break; + case 14: + this.labelErrorCode.Text = "登录"; + this.labelMessage1.Text = "要删除用户吗?"; + break; + default: + break; + } + #endregion + break; + case DataStore.LanguageID.Czech: + #region Czech + this.buttonYes.Text = "Ano"; + this.buttonNo.Text = "Ne"; - switch (ok) - { - case 1: - this.labelErrorCode.Text = ""; - this.labelMessage1.Text = "Chcete se vrátit k předchozí DLL?"; - break; - case 2: - this.labelErrorCode.Text = ""; - this.labelMessage1.Text = "Chcete změnit jazyk?"; - break; - case 3: - this.labelErrorCode.Text = "Aktualizace"; - this.labelMessage1.Text = "Program byl aktualizován"; - break; - case 4: - break; - case 5: - this.labelErrorCode.Text = "Tovární nastavení"; - this.labelMessage1.Text = "Budou inicializována všechna data"; - break; - case 6: - break; - case 7: - break; - case 8: - this.labelErrorCode.Text = "Smazat"; - this.labelMessage1.Text = "Smazat všechny počty?"; - break; - case 9: - this.labelErrorCode.Text = "Stažení"; - this.labelMessage1.Text = "Chcete stáhnout aktuální hodnotu?"; - break; - case 10: - break; - case 11: - this.labelErrorCode.Text = "Stažení"; - this.labelMessage1.Text = "Chcete program stáhnout na motor?"; - break; - case 12: - this.labelErrorCode.Text = "Přihlásit se"; - this.labelMessage1.Text = "Chcete se odhlásit?"; - break; - case 13: - this.labelErrorCode.Text = "Přihlásit se"; - this.labelMessage1.Text = "Chcete zaregistrovat uživatele?"; - break; - case 14: - this.labelErrorCode.Text = "Přihlásit se"; - this.labelMessage1.Text = "Chcete smazat uživatele?"; - break; - default: - break; - } - } - else if (language == DataStore.LanguageID.German) - { - switch (ok) - { - case 1: - this.labelErrorCode.Text = ""; - this.labelMessage1.Text = "Möchten Sie die ursprüngliche"; - this.labelMessage2.Text = "DDL-Bibliothek wirklich zurückgeben?"; - break; - case 2: - this.labelErrorCode.Text = ""; - this.labelMessage1.Text = "Möchten Sie die Sprache wirklich ändern?"; - break; - case 3: - this.labelErrorCode.Text = "Aktualisierung"; - this.labelMessage1.Text = "Programm wird aktualisiert"; - break; - case 4: - break; - case 5: - this.labelErrorCode.Text = "Werkseinstellung"; - this.labelMessage1.Text = "Alle Daten werden initialisiert"; - break; - case 6: - break; - case 7: - break; - case 8: - this.labelErrorCode.Text = "Löschen"; - this.labelMessage1.Text = "Wirklich die Zähler löschen? "; - break; - case 9: - this.labelErrorCode.Text = "Programm-Download zum Motor"; - this.labelMessage1.Text = "Möchten Sie den aktuellen"; - this.labelMessage2.Text = "Wert wirklich herunterladen?"; - break; - case 10: - break; - case 11: - this.labelErrorCode.Text = "Programm-Download zum Motor"; - this.labelMessage1.Text = "Möchten Sie wirklich einen Motor herunterladen?"; - break; - case 12: - this.labelErrorCode.Text = "Einloggen"; - this.labelMessage1.Text = "Möchten Sie sich abmelden?"; - break; - case 13: - this.labelErrorCode.Text = "Einloggen"; - this.labelMessage1.Text = "Möchten Sie den Benutzer registrieren?"; - break; - case 14: - this.labelErrorCode.Text = "Einloggen"; - this.labelMessage1.Text = "Möchten Sie einen Benutzer löschen?"; - break; - default: - break; - } - } - else - { + switch (ok) + { + case 1: + this.labelErrorCode.Text = ""; + this.labelMessage1.Text = "Chcete se vrátit k předchozí DLL?"; + break; + case 2: + this.labelErrorCode.Text = ""; + this.labelMessage1.Text = "Chcete změnit jazyk?"; + break; + case 3: + this.labelErrorCode.Text = "Aktualizace"; + this.labelMessage1.Text = "Program byl aktualizován"; + break; + case 4: + break; + case 5: + this.labelErrorCode.Text = "Tovární nastavení"; + this.labelMessage1.Text = "Budou inicializována všechna data"; + break; + case 6: + break; + case 7: + break; + case 8: + this.labelErrorCode.Text = "Smazat"; + this.labelMessage1.Text = "Smazat všechny počty?"; + break; + case 9: + this.labelErrorCode.Text = "Stažení"; + this.labelMessage1.Text = "Chcete stáhnout aktuální hodnotu?"; + break; + case 10: + break; + case 11: + this.labelErrorCode.Text = "Stažení"; + this.labelMessage1.Text = "Chcete program stáhnout na motor?"; + break; + case 12: + this.labelErrorCode.Text = "Přihlásit se"; + this.labelMessage1.Text = "Chcete se odhlásit?"; + break; + case 13: + this.labelErrorCode.Text = "Přihlásit se"; + this.labelMessage1.Text = "Chcete zaregistrovat uživatele?"; + break; + case 14: + this.labelErrorCode.Text = "Přihlásit se"; + this.labelMessage1.Text = "Chcete smazat uživatele?"; + break; + default: + break; + } + #endregion + break; + case DataStore.LanguageID.German: + #region German + switch (ok) + { + case 1: + this.labelErrorCode.Text = ""; + this.labelMessage1.Text = "Möchten Sie die ursprüngliche"; + this.labelMessage2.Text = "DDL-Bibliothek wirklich zurückgeben?"; + break; + case 2: + this.labelErrorCode.Text = ""; + this.labelMessage1.Text = "Möchten Sie die Sprache wirklich ändern?"; + break; + case 3: + this.labelErrorCode.Text = "Aktualisierung"; + this.labelMessage1.Text = "Programm wird aktualisiert"; + break; + case 4: + break; + case 5: + this.labelErrorCode.Text = "Werkseinstellung"; + this.labelMessage1.Text = "Alle Daten werden initialisiert"; + break; + case 6: + break; + case 7: + break; + case 8: + this.labelErrorCode.Text = "Löschen"; + this.labelMessage1.Text = "Wirklich die Zähler löschen? "; + break; + case 9: + this.labelErrorCode.Text = "Programm-Download zum Motor"; + this.labelMessage1.Text = "Möchten Sie den aktuellen"; + this.labelMessage2.Text = "Wert wirklich herunterladen?"; + break; + case 10: + break; + case 11: + this.labelErrorCode.Text = "Programm-Download zum Motor"; + this.labelMessage1.Text = "Möchten Sie wirklich einen Motor herunterladen?"; + break; + case 12: + this.labelErrorCode.Text = "Einloggen"; + this.labelMessage1.Text = "Möchten Sie sich abmelden?"; + break; + case 13: + this.labelErrorCode.Text = "Einloggen"; + this.labelMessage1.Text = "Möchten Sie den Benutzer registrieren?"; + break; + case 14: + this.labelErrorCode.Text = "Einloggen"; + this.labelMessage1.Text = "Möchten Sie einen Benutzer löschen?"; + break; + default: + break; + } + #endregion + break; + case DataStore.LanguageID.Japanese: + #region Japanese + this.buttonYes.Text = "はい"; + this.buttonNo.Text = "いいえ"; + + switch (ok) + { + case 1: + this.labelErrorCode.Text = ""; + this.labelMessage1.Text = "以前のDLLに戻しますか?"; + break; + case 2: + this.labelErrorCode.Text = ""; + this.labelMessage1.Text = "言語を変更しますか?"; + break; + case 3: + this.labelErrorCode.Text = "更新"; + this.labelMessage1.Text = "これよりアプリケㅡションプログラムの更新となる"; + break; + case 4: + break; + case 5: + this.labelErrorCode.Text = "初期化"; + this.labelMessage1.Text = "すべてのデㅡタが初期化される"; + break; + case 6: + break; + case 7: + break; + case 8: + this.labelErrorCode.Text = "クリア"; + this.labelMessage1.Text = "カウントをすべて消去しますか?"; + break; + case 9: + break; + case 10: + break; + case 11: + break; + case 12: + this.labelErrorCode.Text = "ログイン"; + this.labelMessage1.Text = "ログアウトしますか?"; + break; + case 13: + this.labelErrorCode.Text = "ログイン"; + this.labelMessage1.Text = "ユㅡザㅡ登録しますか?"; + break; + case 14: + this.labelErrorCode.Text = "ログイン"; + this.labelMessage1.Text = "このユㅡザㅡを削除しますか?"; + break; + default: + break; + } + #endregion + break; + default: + break; } } #endregion diff --git a/INT63DC_2C/Forms/FormCalibration.Designer.cs b/INT63DC_2C/Forms/FormCalibration.Designer.cs index b6f76d6..82c2c01 100644 --- a/INT63DC_2C/Forms/FormCalibration.Designer.cs +++ b/INT63DC_2C/Forms/FormCalibration.Designer.cs @@ -208,7 +208,7 @@ this.groupBoxSetting.InitVisible = true; this.groupBoxSetting.Location = new System.Drawing.Point(270, 569); this.groupBoxSetting.Name = "groupBoxSetting"; - this.groupBoxSetting.RoundRadius = 0; + this.groupBoxSetting.RoundRadius = 5; this.groupBoxSetting.Size = new System.Drawing.Size(298, 181); this.groupBoxSetting.TabIndex = 5; this.groupBoxSetting.Text = "설정"; @@ -348,7 +348,7 @@ this.groupBoxHelp.InitVisible = true; this.groupBoxHelp.Location = new System.Drawing.Point(574, 569); this.groupBoxHelp.Name = "groupBoxHelp"; - this.groupBoxHelp.RoundRadius = 0; + this.groupBoxHelp.RoundRadius = 5; this.groupBoxHelp.Size = new System.Drawing.Size(322, 181); this.groupBoxHelp.TabIndex = 5; this.groupBoxHelp.Text = "도움말"; @@ -416,7 +416,7 @@ private SmartX.SmartGroupBox groupBoxHelp; private System.Windows.Forms.Timer timer; private SmartX.SmartLabel labelTitle; - public System.Windows.Forms.ListBox listBoxHelp; public SmartX.SmartLabel labelBalanceWeight; + private System.Windows.Forms.ListBox listBoxHelp; } } \ No newline at end of file diff --git a/INT63DC_2C/Forms/FormCalibration.cs b/INT63DC_2C/Forms/FormCalibration.cs index a44ba13..dbe9264 100644 --- a/INT63DC_2C/Forms/FormCalibration.cs +++ b/INT63DC_2C/Forms/FormCalibration.cs @@ -53,115 +53,141 @@ namespace INT63DC_2C.Forms { ImageDll images = new ImageDll(); - if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) + switch (this.ParentForm.SystemConfig.Language) { + case DataStore.LanguageID.Korean: + break; + case DataStore.LanguageID.English: + #region English + this.labelTitle.Text = "Calibration"; - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.labelTitle.Text = "Calibration"; + this.groupBoxSetting.Text = "Setting"; + this.groupBoxHelp.Text = "Help"; + this.labelStaticBalanceWeight.Text = "Balance weight"; + this.labelStaticMaxWeight.Text = "Max weight"; + this.labelStaticDigit.Text = "Digit"; - this.groupBoxSetting.Text = "Setting"; - this.groupBoxHelp.Text = "Help"; - this.labelStaticBalanceWeight.Text = "Balance weight"; - this.labelStaticMaxWeight.Text = "Max weight"; - this.labelStaticDigit.Text = "Digit"; + this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDisable)); + this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDown)); + this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackUp)); - this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDisable)); - this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDown)); - this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackUp)); + this.buttonStart.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engFormCalibrationStartDisable)); + this.buttonStart.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engFormCalibrationStartDown)); + this.buttonStart.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engFormCalibrationStartUp)); + this.buttonBalance.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engFormCalibrationBalanceDisable)); + this.buttonBalance.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engFormCalibrationBalanceDown)); + this.buttonBalance.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engFormCalibrationBalanceUp)); + this.buttonCancel.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engFormCalibrationCancelDisable)); + this.buttonCancel.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engFormCalibrationCancelDown)); + this.buttonCancel.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engFormCalibrationCancelUp)); + #endregion + break; + case DataStore.LanguageID.Chinese: + #region Chinese + this.labelTitle.Text = "校准"; - this.buttonStart.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engFormCalibrationStartDisable)); - this.buttonStart.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engFormCalibrationStartDown)); - this.buttonStart.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engFormCalibrationStartUp)); - this.buttonBalance.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engFormCalibrationBalanceDisable)); - this.buttonBalance.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engFormCalibrationBalanceDown)); - this.buttonBalance.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engFormCalibrationBalanceUp)); - this.buttonCancel.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engFormCalibrationCancelDisable)); - this.buttonCancel.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engFormCalibrationCancelDown)); - this.buttonCancel.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engFormCalibrationCancelUp)); - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.labelTitle.Text = "校准"; + this.groupBoxSetting.Text = "设定"; + this.groupBoxHelp.Text = "帮助"; + this.labelStaticBalanceWeight.Text = "砝码重量"; + this.labelStaticMaxWeight.Text = "最大重量"; + this.labelStaticDigit.Text = "数字"; - this.groupBoxSetting.Text = "设定"; - this.groupBoxHelp.Text = "帮助"; - this.labelStaticBalanceWeight.Text = "砝码重量"; - this.labelStaticMaxWeight.Text = "最大重量"; - this.labelStaticDigit.Text = "数字"; + this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackDisable)); + this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackDown)); + this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackUp)); - this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackDisable)); - this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackDown)); - this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackUp)); + this.buttonStart.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationStartDisable)); + this.buttonStart.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationStartDown)); + this.buttonStart.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationStartUp)); + this.buttonBalance.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationBalanceDisable)); + this.buttonBalance.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationBalanceDown)); + this.buttonBalance.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationBalanceUp)); + this.buttonCancel.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationCancelDisable)); + this.buttonCancel.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationCancelDown)); + this.buttonCancel.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationCancelUp)); + #endregion + break; + case DataStore.LanguageID.Czech: + #region Czech + this.labelTitle.Text = "Kalibrace"; - this.buttonStart.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationStartDisable)); - this.buttonStart.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationStartDown)); - this.buttonStart.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationStartUp)); - this.buttonBalance.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationBalanceDisable)); - this.buttonBalance.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationBalanceDown)); - this.buttonBalance.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationBalanceUp)); - this.buttonCancel.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationCancelDisable)); - this.buttonCancel.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationCancelDown)); - this.buttonCancel.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormCalibrationCancelUp)); - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.labelTitle.Text = "Kalibrace"; + this.groupBoxSetting.Text = "Seřízení"; + this.groupBoxHelp.Text = "Pomoc"; + this.labelStaticBalanceWeight.Text = "Vyvažovací závaží"; + this.labelStaticMaxWeight.Text = "Max. hmotnost"; + this.labelStaticDigit.Text = "Číslice"; - this.groupBoxSetting.Text = "Seřízení"; - this.groupBoxHelp.Text = "Pomoc"; - this.labelStaticBalanceWeight.Text = "Vyvažovací závaží"; - this.labelStaticMaxWeight.Text = "Max. hmotnost"; - this.labelStaticDigit.Text = "Číslice"; + this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackDisable)); + this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackDown)); + this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackUp)); - this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackDisable)); - this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackDown)); - this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackUp)); + this.buttonStart.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeFormCalibrationStartDisable)); + this.buttonStart.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeFormCalibrationStartDown)); + this.buttonStart.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeFormCalibrationStartUp)); + this.buttonBalance.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeFormCalibrationBalanceDisable)); + this.buttonBalance.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeFormCalibrationBalanceDown)); + this.buttonBalance.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeFormCalibrationBalanceUp)); + this.buttonCancel.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeFormCalibrationCancelDisable)); + this.buttonCancel.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeFormCalibrationCancelDown)); + this.buttonCancel.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeFormCalibrationCancelUp)); + #endregion + break; + case DataStore.LanguageID.German: + #region German + this.labelTitle.Text = "Kalibrierung"; - this.buttonStart.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeFormCalibrationStartDisable)); - this.buttonStart.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeFormCalibrationStartDown)); - this.buttonStart.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeFormCalibrationStartUp)); - this.buttonBalance.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeFormCalibrationBalanceDisable)); - this.buttonBalance.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeFormCalibrationBalanceDown)); - this.buttonBalance.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeFormCalibrationBalanceUp)); - this.buttonCancel.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeFormCalibrationCancelDisable)); - this.buttonCancel.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeFormCalibrationCancelDown)); - this.buttonCancel.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeFormCalibrationCancelUp)); - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.labelTitle.Text = "Kalibrierung"; + this.groupBoxSetting.Text = "Einstellung"; + this.groupBoxHelp.Text = "Hilfe"; + this.labelStaticBalanceWeight.Text = "Gewicht der Waage"; + this.labelStaticMaxWeight.Text = "Maximalgewicht"; + this.labelStaticDigit.Text = "Nummer"; - this.groupBoxSetting.Text = "Einstellung"; - this.groupBoxHelp.Text = "Hilfe"; - this.labelStaticBalanceWeight.Text = "Gewicht der Waage"; - this.labelStaticMaxWeight.Text = "Maximalgewicht"; - this.labelStaticDigit.Text = "Nummer"; + this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackDisable)); + this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackDown)); + this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackUp)); - this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackDisable)); - this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackDown)); - this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackUp)); + this.buttonStart.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerFormCalibrationStartDisable)); + this.buttonStart.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerFormCalibrationStartDown)); + this.buttonStart.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerFormCalibrationStartUp)); + this.buttonBalance.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerFormCalibrationBalanceDisable)); + this.buttonBalance.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerFormCalibrationBalanceDown)); + this.buttonBalance.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerFormCalibrationBalanceUp)); + this.buttonCancel.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerFormCalibrationCancelDisable)); + this.buttonCancel.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerFormCalibrationCancelDown)); + this.buttonCancel.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerFormCalibrationCancelUp)); + #endregion + break; + case DataStore.LanguageID.Japanese: + #region Japanese + this.labelTitle.Text = "校正"; - this.buttonStart.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerFormCalibrationStartDisable)); - this.buttonStart.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerFormCalibrationStartDown)); - this.buttonStart.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerFormCalibrationStartUp)); - this.buttonBalance.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerFormCalibrationBalanceDisable)); - this.buttonBalance.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerFormCalibrationBalanceDown)); - this.buttonBalance.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerFormCalibrationBalanceUp)); - this.buttonCancel.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerFormCalibrationCancelDisable)); - this.buttonCancel.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerFormCalibrationCancelDown)); - this.buttonCancel.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerFormCalibrationCancelUp)); - } - else - { + this.groupBoxSetting.Text = "設定"; + this.groupBoxHelp.Text = "ヘルプ"; + this.labelStaticBalanceWeight.Text = "バランス重量"; + this.labelStaticMaxWeight.Text = "最大重量"; + this.labelStaticDigit.Text = "桁"; + this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDisable)); + this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDown)); + this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackUp)); + + this.buttonStart.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engFormCalibrationStartDisable)); + this.buttonStart.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engFormCalibrationStartDown)); + this.buttonStart.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engFormCalibrationStartUp)); + this.buttonBalance.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engFormCalibrationBalanceDisable)); + this.buttonBalance.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engFormCalibrationBalanceDown)); + this.buttonBalance.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engFormCalibrationBalanceUp)); + this.buttonCancel.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engFormCalibrationCancelDisable)); + this.buttonCancel.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engFormCalibrationCancelDown)); + this.buttonCancel.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engFormCalibrationCancelUp)); + #endregion + break; + default: + break; } } private void InitializeControl() { - this.listBoxHelp.Items.Clear(); - this.labelBalanceWeight.Text = Helper.StringToDecimalPlaces("0", this.ParentForm.SystemConfig.DecimalPlaces); this.labelMaxWeight.Text = Helper.StringToDecimalPlaces("0", this.ParentForm.SystemConfig.DecimalPlaces); @@ -230,45 +256,235 @@ namespace INT63DC_2C.Forms break; } - if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.listBoxHelp.Items.Add("중량조정"); - this.listBoxHelp.Items.Add("LANE을 선택 후"); - this.listBoxHelp.Items.Add("시작을 누르세요"); - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.listBoxHelp.Items.Add("Calibration"); - this.listBoxHelp.Items.Add("After selecting line, "); - this.listBoxHelp.Items.Add("push the [Start] button."); - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.listBoxHelp.Items.Add("校准"); - this.listBoxHelp.Items.Add("选择线后,按[开始]按钮。"); - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.listBoxHelp.Items.Add("Kalibrace"); - this.listBoxHelp.Items.Add("Po výběru řádku, "); - this.listBoxHelp.Items.Add("stiskněte tlačítko [Start]."); - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.listBoxHelp.Items.Add("Kalibrierung"); - this.listBoxHelp.Items.Add("Drücken Sie nach der Auswahl der"); - this.listBoxHelp.Items.Add("Zeile die Taste [Start]."); - } - else - { - - } + this.UpdateDisplayHelpInit(); } - - public void ClearListBox() + + public void UpdateDisplayHelpInit() { this.listBoxHelp.Items.Clear(); + + switch (this.ParentForm.SystemConfig.Language) + { + case DataStore.LanguageID.Korean: + this.listBoxHelp.Items.Add("중량조정"); + this.listBoxHelp.Items.Add("LANE을 선택 후"); + this.listBoxHelp.Items.Add("시작을 누르세요"); + break; + case DataStore.LanguageID.English: + this.listBoxHelp.Items.Add("Calibration"); + this.listBoxHelp.Items.Add("After selecting lane, "); + this.listBoxHelp.Items.Add("push the [Start] button."); + break; + case DataStore.LanguageID.Chinese: + this.listBoxHelp.Items.Add("校准"); + this.listBoxHelp.Items.Add("选择线后,按[开始]按钮。"); + break; + case DataStore.LanguageID.Czech: + this.listBoxHelp.Items.Add("Kalibrace"); + this.listBoxHelp.Items.Add("Po výběru řádku, "); + this.listBoxHelp.Items.Add("stiskněte tlačítko [Start]."); + break; + case DataStore.LanguageID.German: + this.listBoxHelp.Items.Add("Kalibrierung"); + this.listBoxHelp.Items.Add("Drücken Sie nach der Auswahl der"); + this.listBoxHelp.Items.Add("Zeile die Taste [Start]."); + break; + case DataStore.LanguageID.Japanese: + this.listBoxHelp.Items.Add("較正"); + this.listBoxHelp.Items.Add("レㅡンを選択したら、"); + this.listBoxHelp.Items.Add("[スタㅡト]ボタンを押します。"); + break; + default: + break; + } } + public void UpdateDisplayHelpBalance() + { + this.listBoxHelp.Items.Clear(); + + switch (this.ParentForm.SystemConfig.Language) + { + case DataStore.LanguageID.Korean: + this.listBoxHelp.Items.Add("분동 계산중 입니다"); + this.listBoxHelp.Items.Add("잠시만 기다리세요"); + break; + case DataStore.LanguageID.English: + this.listBoxHelp.Items.Add("Caculating..."); + this.listBoxHelp.Items.Add("Wait a minute."); + break; + case DataStore.LanguageID.Chinese: + this.listBoxHelp.Items.Add("计算..."); + this.listBoxHelp.Items.Add("请稍等"); + break; + case DataStore.LanguageID.Czech: + this.listBoxHelp.Items.Add("Kontroluji hmotnost..."); + this.listBoxHelp.Items.Add("čekejte prosím."); + break; + case DataStore.LanguageID.German: + this.listBoxHelp.Items.Add("Gewichtsüberprüfung,"); + this.listBoxHelp.Items.Add("bitte warten"); + break; + case DataStore.LanguageID.Japanese: + this.listBoxHelp.Items.Add("重量をチェック。"); + this.listBoxHelp.Items.Add("待機する"); + break; + default: + break; + } + } + public void UpdateDisplayHelpStart() + { + this.listBoxHelp.Items.Clear(); + + switch (this.ParentForm.SystemConfig.Language) + { + case DataStore.LanguageID.Korean: + this.listBoxHelp.Items.Add("중량조정을 시작합니다."); + this.listBoxHelp.Items.Add("잠시만 기다리세요."); + break; + case DataStore.LanguageID.English: + this.listBoxHelp.Items.Add("Calibration start."); + this.listBoxHelp.Items.Add("Wait a minute."); + break; + case DataStore.LanguageID.Chinese: + this.listBoxHelp.Items.Add("校准开始按钮"); + this.listBoxHelp.Items.Add("请稍等"); + break; + case DataStore.LanguageID.Czech: + this.listBoxHelp.Items.Add("START kalibrace"); + this.listBoxHelp.Items.Add("čekejte prosím."); + break; + case DataStore.LanguageID.German: + this.listBoxHelp.Items.Add("Kalibrierungsstart"); + this.listBoxHelp.Items.Add("bitte warten"); + break; + case DataStore.LanguageID.Japanese: + this.listBoxHelp.Items.Add("校正開始"); + this.listBoxHelp.Items.Add("待機する"); + break; + default: + break; + } + } + public void UpdateDisplayHelpCancel() + { + this.listBoxHelp.Items.Clear(); + + switch (this.ParentForm.SystemConfig.Language) + { + case DataStore.LanguageID.Korean: + this.listBoxHelp.Items.Add("중량조정을 취소합니다"); + break; + case DataStore.LanguageID.English: + this.listBoxHelp.Items.Add("Cancel the Calibration"); + break; + case DataStore.LanguageID.Chinese: + this.listBoxHelp.Items.Add("取消校准"); + break; + case DataStore.LanguageID.Czech: + this.listBoxHelp.Items.Add("Zrušení Kalibrace"); + break; + case DataStore.LanguageID.German: + this.listBoxHelp.Items.Add("Brechen Sie die "); + this.listBoxHelp.Items.Add("Kalibrierung ab"); + break; + case DataStore.LanguageID.Japanese: + this.listBoxHelp.Items.Add("校正をキャンセルする"); + break; + default: + break; + } + } + public void UpdateDisplayHelpCalStandby() + { + this.listBoxHelp.Items.Clear(); + + switch (this.ParentForm.SystemConfig.Language) + { + case DataStore.LanguageID.Korean: + this.listBoxHelp.Items.Add("분동을 올려주세요."); + break; + case DataStore.LanguageID.English: + this.listBoxHelp.Items.Add("Put the balance weight."); + break; + case DataStore.LanguageID.Chinese: + this.listBoxHelp.Items.Add("放平衡重"); + break; + case DataStore.LanguageID.Czech: + this.listBoxHelp.Items.Add("Položit vyvážení hmotnosti."); + break; + case DataStore.LanguageID.German: + this.listBoxHelp.Items.Add("Gewicht auf den Förderer legen"); + break; + case DataStore.LanguageID.Japanese: + this.listBoxHelp.Items.Add("バランスウェイトを置く。"); + break; + default: + break; + } + } + public void UpdateDisplayHelpCalFinish() + { + this.listBoxHelp.Items.Clear(); + + switch (this.ParentForm.SystemConfig.Language) + { + case DataStore.LanguageID.Korean: + this.listBoxHelp.Items.Add("중량조정이 완료 되었습니다."); + break; + case DataStore.LanguageID.English: + this.listBoxHelp.Items.Add("Finished."); + break; + case DataStore.LanguageID.Chinese: + this.listBoxHelp.Items.Add("完"); + break; + case DataStore.LanguageID.Czech: + this.listBoxHelp.Items.Add("Ukončený."); + break; + case DataStore.LanguageID.German: + this.listBoxHelp.Items.Add("Die Kalibrierung ist abgeschlossen."); + break; + case DataStore.LanguageID.Japanese: + this.listBoxHelp.Items.Add("校正終了"); + break; + default: + break; + } + } + public void UpdateDisplayHelpCalError() + { + this.listBoxHelp.Items.Clear(); + + switch (this.ParentForm.SystemConfig.Language) + { + case DataStore.LanguageID.Korean: + this.listBoxHelp.Items.Add("중량조정 에러"); + this.listBoxHelp.Items.Add("다시 시도해 주세요"); + break; + case DataStore.LanguageID.English: + this.listBoxHelp.Items.Add("Calibration error."); + this.listBoxHelp.Items.Add("Please try again."); + break; + case DataStore.LanguageID.Chinese: + this.listBoxHelp.Items.Add("错误发生,重试"); + break; + case DataStore.LanguageID.Czech: + this.listBoxHelp.Items.Add("Kalibrace chyba."); + this.listBoxHelp.Items.Add("Zkuste znovu."); + break; + case DataStore.LanguageID.German: + this.listBoxHelp.Items.Add("Fehler!"); + this.listBoxHelp.Items.Add("Bitte noch einmal versuchen"); + break; + case DataStore.LanguageID.Japanese: + this.listBoxHelp.Items.Add("校正エラㅡ"); + this.listBoxHelp.Items.Add("もうㅡ度試してください"); + break; + default: + break; + } + } + public void CalibrationButtonEnable(bool btStart, bool btBalance, bool btCcancel) { if (this.buttonStart.Enabled != btStart) @@ -380,8 +596,6 @@ namespace INT63DC_2C.Forms this.ParentForm.TransferData(CommunicationCommand.ModeCalibration, CommunicationID.MainBoard); this.timer.Enabled = true; - this.ClearListBox(); - switch (this.ParentForm.SystemConfig.EquipmentColumns) { case 2: @@ -429,40 +643,7 @@ namespace INT63DC_2C.Forms } this.CalibrationButtonEnable(false, false, false); - - if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) - { - this.listBoxHelp.Items.Add("중량조정"); - this.listBoxHelp.Items.Add("LANE을 선택 후"); - this.listBoxHelp.Items.Add("시작을 누르세요"); - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.listBoxHelp.Items.Add("Calibration"); - this.listBoxHelp.Items.Add("After selecting line, "); - this.listBoxHelp.Items.Add("push the [Start] button."); - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.listBoxHelp.Items.Add("校准"); - this.listBoxHelp.Items.Add("选择线后,按[开始]按钮。"); - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.listBoxHelp.Items.Add("Kalibrace"); - this.listBoxHelp.Items.Add("Po výběru řádku, "); - this.listBoxHelp.Items.Add("stiskněte tlačítko [Start]."); - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.listBoxHelp.Items.Add("Kalibrierung"); - this.listBoxHelp.Items.Add("Drücken Sie nach der Auswahl der"); - this.listBoxHelp.Items.Add("Zeile die Taste [Start]."); - } - else - { - - } + this.UpdateDisplayHelpInit(); } #endregion @@ -536,8 +717,6 @@ namespace INT63DC_2C.Forms private void buttonStart_Click(object sender, EventArgs e) { - this.ClearListBox(); - switch (this.ParentForm.SystemConfig.EquipmentColumns) { case 2: @@ -577,8 +756,6 @@ namespace INT63DC_2C.Forms private void buttonBalance_Click(object sender, EventArgs e) { - this.ClearListBox(); - switch (this.ParentForm.SystemConfig.EquipmentColumns) { case 2: @@ -618,8 +795,6 @@ namespace INT63DC_2C.Forms private void buttonCancel_Click(object sender, EventArgs e) { - this.ClearListBox(); - switch (this.ParentForm.SystemConfig.EquipmentColumns) { case 2: @@ -659,8 +834,6 @@ namespace INT63DC_2C.Forms private void buttonBack_Click(object sender, EventArgs e) { - this.ClearListBox(); - switch (this.ParentForm.SystemConfig.EquipmentColumns) { case 2: diff --git a/INT63DC_2C/Forms/FormConfiguration.Designer.cs b/INT63DC_2C/Forms/FormConfiguration.Designer.cs index 7b8dd2d..5191865 100644 --- a/INT63DC_2C/Forms/FormConfiguration.Designer.cs +++ b/INT63DC_2C/Forms/FormConfiguration.Designer.cs @@ -70,6 +70,22 @@ this.panelSpecialMenu = new System.Windows.Forms.Panel(); this.tabControl1 = new System.Windows.Forms.TabControl(); this.tabPage1 = new System.Windows.Forms.TabPage(); + this.smartLabel3 = new SmartX.SmartLabel(); + this.smartLabel5 = new SmartX.SmartLabel(); + this.smartLabel8 = new SmartX.SmartLabel(); + this.smartLabel12 = new SmartX.SmartLabel(); + this.labelZeroVariate16 = new SmartX.SmartLabel(); + this.labelZeroVariate14 = new SmartX.SmartLabel(); + this.labelZeroRange15 = new SmartX.SmartLabel(); + this.labelZeroRange13 = new SmartX.SmartLabel(); + this.labelZeroVariate15 = new SmartX.SmartLabel(); + this.labelZeroVariate13 = new SmartX.SmartLabel(); + this.labelZeroRange16 = new SmartX.SmartLabel(); + this.labelZeroRange14 = new SmartX.SmartLabel(); + this.labelZeroTime15 = new SmartX.SmartLabel(); + this.labelZeroTime13 = new SmartX.SmartLabel(); + this.labelZeroTime16 = new SmartX.SmartLabel(); + this.labelZeroTime14 = new SmartX.SmartLabel(); this.buttonZeroRange = new System.Windows.Forms.Button(); this.labelLoadcell21 = new SmartX.SmartLabel(); this.buttonZeroTime = new System.Windows.Forms.Button(); @@ -122,6 +138,22 @@ this.labelZeroRange1 = new SmartX.SmartLabel(); this.labelZeroRange2 = new SmartX.SmartLabel(); this.tabPage2 = new System.Windows.Forms.TabPage(); + this.labelBalanceWeight15 = new SmartX.SmartLabel(); + this.labelBalanceWeight13 = new SmartX.SmartLabel(); + this.smartLabel23 = new SmartX.SmartLabel(); + this.smartLabel29 = new SmartX.SmartLabel(); + this.labelBalanceWeight16 = new SmartX.SmartLabel(); + this.labelBalanceWeight14 = new SmartX.SmartLabel(); + this.smartLabel34 = new SmartX.SmartLabel(); + this.smartLabel35 = new SmartX.SmartLabel(); + this.labelDigit16 = new SmartX.SmartLabel(); + this.labelDigit14 = new SmartX.SmartLabel(); + this.labelMaxWeight16 = new SmartX.SmartLabel(); + this.labelMaxWeight14 = new SmartX.SmartLabel(); + this.labelDigit15 = new SmartX.SmartLabel(); + this.labelMaxWeight15 = new SmartX.SmartLabel(); + this.labelDigit13 = new SmartX.SmartLabel(); + this.labelMaxWeight13 = new SmartX.SmartLabel(); this.labelLoadcell11 = new SmartX.SmartLabel(); this.labelBalanceWeight1 = new SmartX.SmartLabel(); this.labelBalanceWeight2 = new SmartX.SmartLabel(); @@ -174,6 +206,14 @@ this.buttonDigit = new System.Windows.Forms.Button(); this.buttonMaxWeight = new System.Windows.Forms.Button(); this.tabPage3 = new System.Windows.Forms.TabPage(); + this.labelFilter15 = new SmartX.SmartLabel(); + this.labelFilter13 = new SmartX.SmartLabel(); + this.smartLabel30 = new SmartX.SmartLabel(); + this.smartLabel31 = new SmartX.SmartLabel(); + this.labelFilter16 = new SmartX.SmartLabel(); + this.labelFilter14 = new SmartX.SmartLabel(); + this.smartLabel40 = new SmartX.SmartLabel(); + this.smartLabel41 = new SmartX.SmartLabel(); this.smartLabel1 = new SmartX.SmartLabel(); this.labelFilter1 = new SmartX.SmartLabel(); this.labelFilter2 = new SmartX.SmartLabel(); @@ -202,6 +242,15 @@ this.labelTitle = new SmartX.SmartLabel(); this.timerInterval = new System.Windows.Forms.Timer(); this.groupBoxBypass = new SmartX.SmartGroupBox(); + this.smartSeparatorLine1 = new SmartX.SmartSeparatorLine(); + this.buttonBypassLane16 = new SmartX.SmartButton(); + this.buttonBypassLane15 = new SmartX.SmartButton(); + this.labelTitleLine16 = new SmartX.SmartLabel(); + this.labelTitleLine15 = new SmartX.SmartLabel(); + this.buttonBypassLane14 = new SmartX.SmartButton(); + this.buttonBypassLane13 = new SmartX.SmartButton(); + this.labelTitleLine14 = new SmartX.SmartLabel(); + this.labelTitleLine13 = new SmartX.SmartLabel(); this.buttonSaveBypass = new System.Windows.Forms.Button(); this.buttonBypassLane12 = new SmartX.SmartButton(); this.buttonBypassLane10 = new SmartX.SmartButton(); @@ -228,55 +277,6 @@ this.labelTitleLine2 = new SmartX.SmartLabel(); this.labelTitleLine1 = new SmartX.SmartLabel(); this.buttonScreen = new SmartX.SmartButton(); - this.buttonBypassLane14 = new SmartX.SmartButton(); - this.buttonBypassLane13 = new SmartX.SmartButton(); - this.labelTitleLine14 = new SmartX.SmartLabel(); - this.labelTitleLine13 = new SmartX.SmartLabel(); - this.buttonBypassLane16 = new SmartX.SmartButton(); - this.buttonBypassLane15 = new SmartX.SmartButton(); - this.labelTitleLine16 = new SmartX.SmartLabel(); - this.labelTitleLine15 = new SmartX.SmartLabel(); - this.smartSeparatorLine1 = new SmartX.SmartSeparatorLine(); - this.smartLabel3 = new SmartX.SmartLabel(); - this.smartLabel5 = new SmartX.SmartLabel(); - this.smartLabel8 = new SmartX.SmartLabel(); - this.smartLabel12 = new SmartX.SmartLabel(); - this.labelZeroVariate16 = new SmartX.SmartLabel(); - this.labelZeroVariate14 = new SmartX.SmartLabel(); - this.labelZeroRange15 = new SmartX.SmartLabel(); - this.labelZeroRange13 = new SmartX.SmartLabel(); - this.labelZeroVariate15 = new SmartX.SmartLabel(); - this.labelZeroVariate13 = new SmartX.SmartLabel(); - this.labelZeroRange16 = new SmartX.SmartLabel(); - this.labelZeroRange14 = new SmartX.SmartLabel(); - this.labelZeroTime15 = new SmartX.SmartLabel(); - this.labelZeroTime13 = new SmartX.SmartLabel(); - this.labelZeroTime16 = new SmartX.SmartLabel(); - this.labelZeroTime14 = new SmartX.SmartLabel(); - this.labelBalanceWeight15 = new SmartX.SmartLabel(); - this.labelBalanceWeight13 = new SmartX.SmartLabel(); - this.smartLabel23 = new SmartX.SmartLabel(); - this.smartLabel29 = new SmartX.SmartLabel(); - this.labelBalanceWeight16 = new SmartX.SmartLabel(); - this.labelBalanceWeight14 = new SmartX.SmartLabel(); - this.smartLabel34 = new SmartX.SmartLabel(); - this.smartLabel35 = new SmartX.SmartLabel(); - this.labelDigit16 = new SmartX.SmartLabel(); - this.labelDigit14 = new SmartX.SmartLabel(); - this.labelMaxWeight16 = new SmartX.SmartLabel(); - this.labelMaxWeight14 = new SmartX.SmartLabel(); - this.labelDigit15 = new SmartX.SmartLabel(); - this.labelMaxWeight15 = new SmartX.SmartLabel(); - this.labelDigit13 = new SmartX.SmartLabel(); - this.labelMaxWeight13 = new SmartX.SmartLabel(); - this.labelFilter15 = new SmartX.SmartLabel(); - this.labelFilter13 = new SmartX.SmartLabel(); - this.smartLabel30 = new SmartX.SmartLabel(); - this.smartLabel31 = new SmartX.SmartLabel(); - this.labelFilter16 = new SmartX.SmartLabel(); - this.labelFilter14 = new SmartX.SmartLabel(); - this.smartLabel40 = new SmartX.SmartLabel(); - this.smartLabel41 = new SmartX.SmartLabel(); ((System.ComponentModel.ISupportInitialize)(this.smartForm1)).BeginInit(); this.groupBoxAutoZero.SuspendLayout(); this.groupBoxComm.SuspendLayout(); @@ -745,7 +745,7 @@ this.labelStaticEmptyWeight.BackPictureBox2 = null; this.labelStaticEmptyWeight.BorderColor = System.Drawing.Color.Black; this.labelStaticEmptyWeight.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelStaticEmptyWeight.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); + this.labelStaticEmptyWeight.Font = new System.Drawing.Font("New Gulim", 12F, System.Drawing.FontStyle.Bold); this.labelStaticEmptyWeight.ForeColor = System.Drawing.Color.Black; this.labelStaticEmptyWeight.InitVisible = true; this.labelStaticEmptyWeight.LineSpacing = 0F; @@ -1109,6 +1109,326 @@ this.tabPage1.Size = new System.Drawing.Size(392, 533); this.tabPage1.Text = "Auto zero"; // + // smartLabel3 + // + this.smartLabel3.BackColor = System.Drawing.SystemColors.Info; + this.smartLabel3.BackPictureBox = null; + this.smartLabel3.BackPictureBox1 = null; + this.smartLabel3.BackPictureBox2 = null; + this.smartLabel3.BorderColor = System.Drawing.Color.Black; + this.smartLabel3.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.smartLabel3.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); + this.smartLabel3.InitVisible = true; + this.smartLabel3.LineSpacing = 0F; + this.smartLabel3.Location = new System.Drawing.Point(29, 505); + this.smartLabel3.Name = "smartLabel3"; + this.smartLabel3.Size = new System.Drawing.Size(100, 25); + this.smartLabel3.TabIndex = 447; + this.smartLabel3.Text = "SubBoard 16"; + this.smartLabel3.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.smartLabel3.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.smartLabel3.Wordwrap = false; + // + // smartLabel5 + // + this.smartLabel5.BackColor = System.Drawing.SystemColors.Info; + this.smartLabel5.BackPictureBox = null; + this.smartLabel5.BackPictureBox1 = null; + this.smartLabel5.BackPictureBox2 = null; + this.smartLabel5.BorderColor = System.Drawing.Color.Black; + this.smartLabel5.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.smartLabel5.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); + this.smartLabel5.InitVisible = true; + this.smartLabel5.LineSpacing = 0F; + this.smartLabel5.Location = new System.Drawing.Point(29, 443); + this.smartLabel5.Name = "smartLabel5"; + this.smartLabel5.Size = new System.Drawing.Size(100, 25); + this.smartLabel5.TabIndex = 446; + this.smartLabel5.Text = "SubBoard 14"; + this.smartLabel5.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.smartLabel5.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.smartLabel5.Wordwrap = false; + // + // smartLabel8 + // + this.smartLabel8.BackColor = System.Drawing.SystemColors.Info; + this.smartLabel8.BackPictureBox = null; + this.smartLabel8.BackPictureBox1 = null; + this.smartLabel8.BackPictureBox2 = null; + this.smartLabel8.BorderColor = System.Drawing.Color.Black; + this.smartLabel8.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.smartLabel8.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); + this.smartLabel8.InitVisible = true; + this.smartLabel8.LineSpacing = 0F; + this.smartLabel8.Location = new System.Drawing.Point(29, 474); + this.smartLabel8.Name = "smartLabel8"; + this.smartLabel8.Size = new System.Drawing.Size(100, 25); + this.smartLabel8.TabIndex = 448; + this.smartLabel8.Text = "SubBoard 15"; + this.smartLabel8.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.smartLabel8.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.smartLabel8.Wordwrap = false; + // + // smartLabel12 + // + this.smartLabel12.BackColor = System.Drawing.SystemColors.Info; + this.smartLabel12.BackPictureBox = null; + this.smartLabel12.BackPictureBox1 = null; + this.smartLabel12.BackPictureBox2 = null; + this.smartLabel12.BorderColor = System.Drawing.Color.Black; + this.smartLabel12.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.smartLabel12.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); + this.smartLabel12.InitVisible = true; + this.smartLabel12.LineSpacing = 0F; + this.smartLabel12.Location = new System.Drawing.Point(29, 412); + this.smartLabel12.Name = "smartLabel12"; + this.smartLabel12.Size = new System.Drawing.Size(100, 25); + this.smartLabel12.TabIndex = 449; + this.smartLabel12.Text = "SubBoard 13"; + this.smartLabel12.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.smartLabel12.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.smartLabel12.Wordwrap = false; + // + // labelZeroVariate16 + // + this.labelZeroVariate16.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.labelZeroVariate16.BackPictureBox = null; + this.labelZeroVariate16.BackPictureBox1 = null; + this.labelZeroVariate16.BackPictureBox2 = null; + this.labelZeroVariate16.BorderColor = System.Drawing.Color.Black; + this.labelZeroVariate16.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelZeroVariate16.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.labelZeroVariate16.InitVisible = true; + this.labelZeroVariate16.LineSpacing = 0F; + this.labelZeroVariate16.Location = new System.Drawing.Point(287, 505); + this.labelZeroVariate16.Name = "labelZeroVariate16"; + this.labelZeroVariate16.Size = new System.Drawing.Size(70, 25); + this.labelZeroVariate16.TabIndex = 444; + this.labelZeroVariate16.Text = "LoadCell 16"; + this.labelZeroVariate16.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelZeroVariate16.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelZeroVariate16.Wordwrap = false; + // + // labelZeroVariate14 + // + this.labelZeroVariate14.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.labelZeroVariate14.BackPictureBox = null; + this.labelZeroVariate14.BackPictureBox1 = null; + this.labelZeroVariate14.BackPictureBox2 = null; + this.labelZeroVariate14.BorderColor = System.Drawing.Color.Black; + this.labelZeroVariate14.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelZeroVariate14.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.labelZeroVariate14.InitVisible = true; + this.labelZeroVariate14.LineSpacing = 0F; + this.labelZeroVariate14.Location = new System.Drawing.Point(287, 443); + this.labelZeroVariate14.Name = "labelZeroVariate14"; + this.labelZeroVariate14.Size = new System.Drawing.Size(70, 25); + this.labelZeroVariate14.TabIndex = 445; + this.labelZeroVariate14.Text = "LoadCell 14"; + this.labelZeroVariate14.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelZeroVariate14.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelZeroVariate14.Wordwrap = false; + // + // labelZeroRange15 + // + this.labelZeroRange15.BackColor = System.Drawing.SystemColors.ControlLight; + this.labelZeroRange15.BackPictureBox = null; + this.labelZeroRange15.BackPictureBox1 = null; + this.labelZeroRange15.BackPictureBox2 = null; + this.labelZeroRange15.BorderColor = System.Drawing.Color.Black; + this.labelZeroRange15.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelZeroRange15.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.labelZeroRange15.InitVisible = true; + this.labelZeroRange15.LineSpacing = 0F; + this.labelZeroRange15.Location = new System.Drawing.Point(135, 474); + this.labelZeroRange15.Name = "labelZeroRange15"; + this.labelZeroRange15.Size = new System.Drawing.Size(70, 25); + this.labelZeroRange15.TabIndex = 436; + this.labelZeroRange15.Text = "LoadCell 15"; + this.labelZeroRange15.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelZeroRange15.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelZeroRange15.Wordwrap = false; + // + // labelZeroRange13 + // + this.labelZeroRange13.BackColor = System.Drawing.SystemColors.ControlLight; + this.labelZeroRange13.BackPictureBox = null; + this.labelZeroRange13.BackPictureBox1 = null; + this.labelZeroRange13.BackPictureBox2 = null; + this.labelZeroRange13.BorderColor = System.Drawing.Color.Black; + this.labelZeroRange13.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelZeroRange13.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.labelZeroRange13.InitVisible = true; + this.labelZeroRange13.LineSpacing = 0F; + this.labelZeroRange13.Location = new System.Drawing.Point(135, 412); + this.labelZeroRange13.Name = "labelZeroRange13"; + this.labelZeroRange13.Size = new System.Drawing.Size(70, 25); + this.labelZeroRange13.TabIndex = 437; + this.labelZeroRange13.Text = "LoadCell 13"; + this.labelZeroRange13.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelZeroRange13.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelZeroRange13.Wordwrap = false; + // + // labelZeroVariate15 + // + this.labelZeroVariate15.BackColor = System.Drawing.SystemColors.ControlLight; + this.labelZeroVariate15.BackPictureBox = null; + this.labelZeroVariate15.BackPictureBox1 = null; + this.labelZeroVariate15.BackPictureBox2 = null; + this.labelZeroVariate15.BorderColor = System.Drawing.Color.Black; + this.labelZeroVariate15.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelZeroVariate15.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.labelZeroVariate15.InitVisible = true; + this.labelZeroVariate15.LineSpacing = 0F; + this.labelZeroVariate15.Location = new System.Drawing.Point(287, 474); + this.labelZeroVariate15.Name = "labelZeroVariate15"; + this.labelZeroVariate15.Size = new System.Drawing.Size(70, 25); + this.labelZeroVariate15.TabIndex = 443; + this.labelZeroVariate15.Text = "LoadCell 15"; + this.labelZeroVariate15.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelZeroVariate15.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelZeroVariate15.Wordwrap = false; + // + // labelZeroVariate13 + // + this.labelZeroVariate13.BackColor = System.Drawing.SystemColors.ControlLight; + this.labelZeroVariate13.BackPictureBox = null; + this.labelZeroVariate13.BackPictureBox1 = null; + this.labelZeroVariate13.BackPictureBox2 = null; + this.labelZeroVariate13.BorderColor = System.Drawing.Color.Black; + this.labelZeroVariate13.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelZeroVariate13.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.labelZeroVariate13.InitVisible = true; + this.labelZeroVariate13.LineSpacing = 0F; + this.labelZeroVariate13.Location = new System.Drawing.Point(287, 412); + this.labelZeroVariate13.Name = "labelZeroVariate13"; + this.labelZeroVariate13.Size = new System.Drawing.Size(70, 25); + this.labelZeroVariate13.TabIndex = 442; + this.labelZeroVariate13.Text = "LoadCell 13"; + this.labelZeroVariate13.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelZeroVariate13.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelZeroVariate13.Wordwrap = false; + // + // labelZeroRange16 + // + this.labelZeroRange16.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.labelZeroRange16.BackPictureBox = null; + this.labelZeroRange16.BackPictureBox1 = null; + this.labelZeroRange16.BackPictureBox2 = null; + this.labelZeroRange16.BorderColor = System.Drawing.Color.Black; + this.labelZeroRange16.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelZeroRange16.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.labelZeroRange16.InitVisible = true; + this.labelZeroRange16.LineSpacing = 0F; + this.labelZeroRange16.Location = new System.Drawing.Point(135, 505); + this.labelZeroRange16.Name = "labelZeroRange16"; + this.labelZeroRange16.Size = new System.Drawing.Size(70, 25); + this.labelZeroRange16.TabIndex = 438; + this.labelZeroRange16.Text = "LoadCell 16"; + this.labelZeroRange16.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelZeroRange16.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelZeroRange16.Wordwrap = false; + // + // labelZeroRange14 + // + this.labelZeroRange14.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.labelZeroRange14.BackPictureBox = null; + this.labelZeroRange14.BackPictureBox1 = null; + this.labelZeroRange14.BackPictureBox2 = null; + this.labelZeroRange14.BorderColor = System.Drawing.Color.Black; + this.labelZeroRange14.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelZeroRange14.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.labelZeroRange14.InitVisible = true; + this.labelZeroRange14.LineSpacing = 0F; + this.labelZeroRange14.Location = new System.Drawing.Point(135, 443); + this.labelZeroRange14.Name = "labelZeroRange14"; + this.labelZeroRange14.Size = new System.Drawing.Size(70, 25); + this.labelZeroRange14.TabIndex = 439; + this.labelZeroRange14.Text = "LoadCell 14"; + this.labelZeroRange14.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelZeroRange14.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelZeroRange14.Wordwrap = false; + // + // labelZeroTime15 + // + this.labelZeroTime15.BackColor = System.Drawing.SystemColors.ControlLight; + this.labelZeroTime15.BackPictureBox = null; + this.labelZeroTime15.BackPictureBox1 = null; + this.labelZeroTime15.BackPictureBox2 = null; + this.labelZeroTime15.BorderColor = System.Drawing.Color.Black; + this.labelZeroTime15.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelZeroTime15.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.labelZeroTime15.InitVisible = true; + this.labelZeroTime15.LineSpacing = 0F; + this.labelZeroTime15.Location = new System.Drawing.Point(211, 474); + this.labelZeroTime15.Name = "labelZeroTime15"; + this.labelZeroTime15.Size = new System.Drawing.Size(70, 25); + this.labelZeroTime15.TabIndex = 435; + this.labelZeroTime15.Text = "LoadCell 15"; + this.labelZeroTime15.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelZeroTime15.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelZeroTime15.Wordwrap = false; + // + // labelZeroTime13 + // + this.labelZeroTime13.BackColor = System.Drawing.SystemColors.ControlLight; + this.labelZeroTime13.BackPictureBox = null; + this.labelZeroTime13.BackPictureBox1 = null; + this.labelZeroTime13.BackPictureBox2 = null; + this.labelZeroTime13.BorderColor = System.Drawing.Color.Black; + this.labelZeroTime13.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelZeroTime13.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.labelZeroTime13.InitVisible = true; + this.labelZeroTime13.LineSpacing = 0F; + this.labelZeroTime13.Location = new System.Drawing.Point(211, 412); + this.labelZeroTime13.Name = "labelZeroTime13"; + this.labelZeroTime13.Size = new System.Drawing.Size(70, 25); + this.labelZeroTime13.TabIndex = 434; + this.labelZeroTime13.Text = "LoadCell 13"; + this.labelZeroTime13.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelZeroTime13.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelZeroTime13.Wordwrap = false; + // + // labelZeroTime16 + // + this.labelZeroTime16.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.labelZeroTime16.BackPictureBox = null; + this.labelZeroTime16.BackPictureBox1 = null; + this.labelZeroTime16.BackPictureBox2 = null; + this.labelZeroTime16.BorderColor = System.Drawing.Color.Black; + this.labelZeroTime16.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelZeroTime16.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.labelZeroTime16.InitVisible = true; + this.labelZeroTime16.LineSpacing = 0F; + this.labelZeroTime16.Location = new System.Drawing.Point(211, 505); + this.labelZeroTime16.Name = "labelZeroTime16"; + this.labelZeroTime16.Size = new System.Drawing.Size(70, 25); + this.labelZeroTime16.TabIndex = 440; + this.labelZeroTime16.Text = "LoadCell 16"; + this.labelZeroTime16.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelZeroTime16.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelZeroTime16.Wordwrap = false; + // + // labelZeroTime14 + // + this.labelZeroTime14.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.labelZeroTime14.BackPictureBox = null; + this.labelZeroTime14.BackPictureBox1 = null; + this.labelZeroTime14.BackPictureBox2 = null; + this.labelZeroTime14.BorderColor = System.Drawing.Color.Black; + this.labelZeroTime14.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelZeroTime14.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.labelZeroTime14.InitVisible = true; + this.labelZeroTime14.LineSpacing = 0F; + this.labelZeroTime14.Location = new System.Drawing.Point(211, 443); + this.labelZeroTime14.Name = "labelZeroTime14"; + this.labelZeroTime14.Size = new System.Drawing.Size(70, 25); + this.labelZeroTime14.TabIndex = 441; + this.labelZeroTime14.Text = "LoadCell 14"; + this.labelZeroTime14.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelZeroTime14.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelZeroTime14.Wordwrap = false; + // // buttonZeroRange // this.buttonZeroRange.Font = new System.Drawing.Font("New Gulim", 8F, System.Drawing.FontStyle.Bold); @@ -2173,6 +2493,326 @@ this.tabPage2.Size = new System.Drawing.Size(392, 533); this.tabPage2.Text = "Calibration"; // + // labelBalanceWeight15 + // + this.labelBalanceWeight15.BackColor = System.Drawing.SystemColors.ControlLight; + this.labelBalanceWeight15.BackPictureBox = null; + this.labelBalanceWeight15.BackPictureBox1 = null; + this.labelBalanceWeight15.BackPictureBox2 = null; + this.labelBalanceWeight15.BorderColor = System.Drawing.Color.Black; + this.labelBalanceWeight15.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelBalanceWeight15.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.labelBalanceWeight15.InitVisible = true; + this.labelBalanceWeight15.LineSpacing = 0F; + this.labelBalanceWeight15.Location = new System.Drawing.Point(135, 474); + this.labelBalanceWeight15.Name = "labelBalanceWeight15"; + this.labelBalanceWeight15.Size = new System.Drawing.Size(70, 25); + this.labelBalanceWeight15.TabIndex = 457; + this.labelBalanceWeight15.Text = "LoadCell 15"; + this.labelBalanceWeight15.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelBalanceWeight15.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelBalanceWeight15.Wordwrap = false; + // + // labelBalanceWeight13 + // + this.labelBalanceWeight13.BackColor = System.Drawing.SystemColors.ControlLight; + this.labelBalanceWeight13.BackPictureBox = null; + this.labelBalanceWeight13.BackPictureBox1 = null; + this.labelBalanceWeight13.BackPictureBox2 = null; + this.labelBalanceWeight13.BorderColor = System.Drawing.Color.Black; + this.labelBalanceWeight13.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelBalanceWeight13.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.labelBalanceWeight13.InitVisible = true; + this.labelBalanceWeight13.LineSpacing = 0F; + this.labelBalanceWeight13.Location = new System.Drawing.Point(135, 412); + this.labelBalanceWeight13.Name = "labelBalanceWeight13"; + this.labelBalanceWeight13.Size = new System.Drawing.Size(70, 25); + this.labelBalanceWeight13.TabIndex = 456; + this.labelBalanceWeight13.Text = "LoadCell 13"; + this.labelBalanceWeight13.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelBalanceWeight13.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelBalanceWeight13.Wordwrap = false; + // + // smartLabel23 + // + this.smartLabel23.BackColor = System.Drawing.SystemColors.Info; + this.smartLabel23.BackPictureBox = null; + this.smartLabel23.BackPictureBox1 = null; + this.smartLabel23.BackPictureBox2 = null; + this.smartLabel23.BorderColor = System.Drawing.Color.Black; + this.smartLabel23.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.smartLabel23.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); + this.smartLabel23.InitVisible = true; + this.smartLabel23.LineSpacing = 0F; + this.smartLabel23.Location = new System.Drawing.Point(29, 505); + this.smartLabel23.Name = "smartLabel23"; + this.smartLabel23.Size = new System.Drawing.Size(100, 25); + this.smartLabel23.TabIndex = 460; + this.smartLabel23.Text = "SubBoard 16"; + this.smartLabel23.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.smartLabel23.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.smartLabel23.Wordwrap = false; + // + // smartLabel29 + // + this.smartLabel29.BackColor = System.Drawing.SystemColors.Info; + this.smartLabel29.BackPictureBox = null; + this.smartLabel29.BackPictureBox1 = null; + this.smartLabel29.BackPictureBox2 = null; + this.smartLabel29.BorderColor = System.Drawing.Color.Black; + this.smartLabel29.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.smartLabel29.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); + this.smartLabel29.InitVisible = true; + this.smartLabel29.LineSpacing = 0F; + this.smartLabel29.Location = new System.Drawing.Point(29, 443); + this.smartLabel29.Name = "smartLabel29"; + this.smartLabel29.Size = new System.Drawing.Size(100, 25); + this.smartLabel29.TabIndex = 461; + this.smartLabel29.Text = "SubBoard 14"; + this.smartLabel29.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.smartLabel29.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.smartLabel29.Wordwrap = false; + // + // labelBalanceWeight16 + // + this.labelBalanceWeight16.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.labelBalanceWeight16.BackPictureBox = null; + this.labelBalanceWeight16.BackPictureBox1 = null; + this.labelBalanceWeight16.BackPictureBox2 = null; + this.labelBalanceWeight16.BorderColor = System.Drawing.Color.Black; + this.labelBalanceWeight16.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelBalanceWeight16.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.labelBalanceWeight16.InitVisible = true; + this.labelBalanceWeight16.LineSpacing = 0F; + this.labelBalanceWeight16.Location = new System.Drawing.Point(135, 505); + this.labelBalanceWeight16.Name = "labelBalanceWeight16"; + this.labelBalanceWeight16.Size = new System.Drawing.Size(70, 25); + this.labelBalanceWeight16.TabIndex = 458; + this.labelBalanceWeight16.Text = "LoadCell 16"; + this.labelBalanceWeight16.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelBalanceWeight16.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelBalanceWeight16.Wordwrap = false; + // + // labelBalanceWeight14 + // + this.labelBalanceWeight14.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.labelBalanceWeight14.BackPictureBox = null; + this.labelBalanceWeight14.BackPictureBox1 = null; + this.labelBalanceWeight14.BackPictureBox2 = null; + this.labelBalanceWeight14.BorderColor = System.Drawing.Color.Black; + this.labelBalanceWeight14.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelBalanceWeight14.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.labelBalanceWeight14.InitVisible = true; + this.labelBalanceWeight14.LineSpacing = 0F; + this.labelBalanceWeight14.Location = new System.Drawing.Point(135, 443); + this.labelBalanceWeight14.Name = "labelBalanceWeight14"; + this.labelBalanceWeight14.Size = new System.Drawing.Size(70, 25); + this.labelBalanceWeight14.TabIndex = 459; + this.labelBalanceWeight14.Text = "LoadCell 14"; + this.labelBalanceWeight14.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelBalanceWeight14.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelBalanceWeight14.Wordwrap = false; + // + // smartLabel34 + // + this.smartLabel34.BackColor = System.Drawing.SystemColors.Info; + this.smartLabel34.BackPictureBox = null; + this.smartLabel34.BackPictureBox1 = null; + this.smartLabel34.BackPictureBox2 = null; + this.smartLabel34.BorderColor = System.Drawing.Color.Black; + this.smartLabel34.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.smartLabel34.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); + this.smartLabel34.InitVisible = true; + this.smartLabel34.LineSpacing = 0F; + this.smartLabel34.Location = new System.Drawing.Point(29, 474); + this.smartLabel34.Name = "smartLabel34"; + this.smartLabel34.Size = new System.Drawing.Size(100, 25); + this.smartLabel34.TabIndex = 467; + this.smartLabel34.Text = "SubBoard 15"; + this.smartLabel34.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.smartLabel34.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.smartLabel34.Wordwrap = false; + // + // smartLabel35 + // + this.smartLabel35.BackColor = System.Drawing.SystemColors.Info; + this.smartLabel35.BackPictureBox = null; + this.smartLabel35.BackPictureBox1 = null; + this.smartLabel35.BackPictureBox2 = null; + this.smartLabel35.BorderColor = System.Drawing.Color.Black; + this.smartLabel35.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.smartLabel35.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); + this.smartLabel35.InitVisible = true; + this.smartLabel35.LineSpacing = 0F; + this.smartLabel35.Location = new System.Drawing.Point(29, 412); + this.smartLabel35.Name = "smartLabel35"; + this.smartLabel35.Size = new System.Drawing.Size(100, 25); + this.smartLabel35.TabIndex = 466; + this.smartLabel35.Text = "SubBoard 13"; + this.smartLabel35.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.smartLabel35.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.smartLabel35.Wordwrap = false; + // + // labelDigit16 + // + this.labelDigit16.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.labelDigit16.BackPictureBox = null; + this.labelDigit16.BackPictureBox1 = null; + this.labelDigit16.BackPictureBox2 = null; + this.labelDigit16.BorderColor = System.Drawing.Color.Black; + this.labelDigit16.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelDigit16.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.labelDigit16.InitVisible = true; + this.labelDigit16.LineSpacing = 0F; + this.labelDigit16.Location = new System.Drawing.Point(287, 505); + this.labelDigit16.Name = "labelDigit16"; + this.labelDigit16.Size = new System.Drawing.Size(70, 25); + this.labelDigit16.TabIndex = 470; + this.labelDigit16.Text = "LoadCell 16"; + this.labelDigit16.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelDigit16.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelDigit16.Wordwrap = false; + // + // labelDigit14 + // + this.labelDigit14.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.labelDigit14.BackPictureBox = null; + this.labelDigit14.BackPictureBox1 = null; + this.labelDigit14.BackPictureBox2 = null; + this.labelDigit14.BorderColor = System.Drawing.Color.Black; + this.labelDigit14.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelDigit14.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.labelDigit14.InitVisible = true; + this.labelDigit14.LineSpacing = 0F; + this.labelDigit14.Location = new System.Drawing.Point(287, 443); + this.labelDigit14.Name = "labelDigit14"; + this.labelDigit14.Size = new System.Drawing.Size(70, 25); + this.labelDigit14.TabIndex = 471; + this.labelDigit14.Text = "LoadCell 14"; + this.labelDigit14.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelDigit14.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelDigit14.Wordwrap = false; + // + // labelMaxWeight16 + // + this.labelMaxWeight16.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.labelMaxWeight16.BackPictureBox = null; + this.labelMaxWeight16.BackPictureBox1 = null; + this.labelMaxWeight16.BackPictureBox2 = null; + this.labelMaxWeight16.BorderColor = System.Drawing.Color.Black; + this.labelMaxWeight16.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelMaxWeight16.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.labelMaxWeight16.InitVisible = true; + this.labelMaxWeight16.LineSpacing = 0F; + this.labelMaxWeight16.Location = new System.Drawing.Point(211, 505); + this.labelMaxWeight16.Name = "labelMaxWeight16"; + this.labelMaxWeight16.Size = new System.Drawing.Size(70, 25); + this.labelMaxWeight16.TabIndex = 468; + this.labelMaxWeight16.Text = "LoadCell 16"; + this.labelMaxWeight16.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelMaxWeight16.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelMaxWeight16.Wordwrap = false; + // + // labelMaxWeight14 + // + this.labelMaxWeight14.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.labelMaxWeight14.BackPictureBox = null; + this.labelMaxWeight14.BackPictureBox1 = null; + this.labelMaxWeight14.BackPictureBox2 = null; + this.labelMaxWeight14.BorderColor = System.Drawing.Color.Black; + this.labelMaxWeight14.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelMaxWeight14.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.labelMaxWeight14.InitVisible = true; + this.labelMaxWeight14.LineSpacing = 0F; + this.labelMaxWeight14.Location = new System.Drawing.Point(211, 443); + this.labelMaxWeight14.Name = "labelMaxWeight14"; + this.labelMaxWeight14.Size = new System.Drawing.Size(70, 25); + this.labelMaxWeight14.TabIndex = 469; + this.labelMaxWeight14.Text = "LoadCell 14"; + this.labelMaxWeight14.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelMaxWeight14.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelMaxWeight14.Wordwrap = false; + // + // labelDigit15 + // + this.labelDigit15.BackColor = System.Drawing.SystemColors.ControlLight; + this.labelDigit15.BackPictureBox = null; + this.labelDigit15.BackPictureBox1 = null; + this.labelDigit15.BackPictureBox2 = null; + this.labelDigit15.BorderColor = System.Drawing.Color.Black; + this.labelDigit15.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelDigit15.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.labelDigit15.InitVisible = true; + this.labelDigit15.LineSpacing = 0F; + this.labelDigit15.Location = new System.Drawing.Point(287, 474); + this.labelDigit15.Name = "labelDigit15"; + this.labelDigit15.Size = new System.Drawing.Size(70, 25); + this.labelDigit15.TabIndex = 464; + this.labelDigit15.Text = "LoadCell 15"; + this.labelDigit15.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelDigit15.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelDigit15.Wordwrap = false; + // + // labelMaxWeight15 + // + this.labelMaxWeight15.BackColor = System.Drawing.SystemColors.ControlLight; + this.labelMaxWeight15.BackPictureBox = null; + this.labelMaxWeight15.BackPictureBox1 = null; + this.labelMaxWeight15.BackPictureBox2 = null; + this.labelMaxWeight15.BorderColor = System.Drawing.Color.Black; + this.labelMaxWeight15.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelMaxWeight15.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.labelMaxWeight15.InitVisible = true; + this.labelMaxWeight15.LineSpacing = 0F; + this.labelMaxWeight15.Location = new System.Drawing.Point(211, 474); + this.labelMaxWeight15.Name = "labelMaxWeight15"; + this.labelMaxWeight15.Size = new System.Drawing.Size(70, 25); + this.labelMaxWeight15.TabIndex = 462; + this.labelMaxWeight15.Text = "LoadCell 15"; + this.labelMaxWeight15.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelMaxWeight15.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelMaxWeight15.Wordwrap = false; + // + // labelDigit13 + // + this.labelDigit13.BackColor = System.Drawing.SystemColors.ControlLight; + this.labelDigit13.BackPictureBox = null; + this.labelDigit13.BackPictureBox1 = null; + this.labelDigit13.BackPictureBox2 = null; + this.labelDigit13.BorderColor = System.Drawing.Color.Black; + this.labelDigit13.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelDigit13.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.labelDigit13.InitVisible = true; + this.labelDigit13.LineSpacing = 0F; + this.labelDigit13.Location = new System.Drawing.Point(287, 412); + this.labelDigit13.Name = "labelDigit13"; + this.labelDigit13.Size = new System.Drawing.Size(70, 25); + this.labelDigit13.TabIndex = 465; + this.labelDigit13.Text = "LoadCell 13"; + this.labelDigit13.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelDigit13.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelDigit13.Wordwrap = false; + // + // labelMaxWeight13 + // + this.labelMaxWeight13.BackColor = System.Drawing.SystemColors.ControlLight; + this.labelMaxWeight13.BackPictureBox = null; + this.labelMaxWeight13.BackPictureBox1 = null; + this.labelMaxWeight13.BackPictureBox2 = null; + this.labelMaxWeight13.BorderColor = System.Drawing.Color.Black; + this.labelMaxWeight13.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelMaxWeight13.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.labelMaxWeight13.InitVisible = true; + this.labelMaxWeight13.LineSpacing = 0F; + this.labelMaxWeight13.Location = new System.Drawing.Point(211, 412); + this.labelMaxWeight13.Name = "labelMaxWeight13"; + this.labelMaxWeight13.Size = new System.Drawing.Size(70, 25); + this.labelMaxWeight13.TabIndex = 463; + this.labelMaxWeight13.Text = "LoadCell 13"; + this.labelMaxWeight13.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelMaxWeight13.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelMaxWeight13.Wordwrap = false; + // // labelLoadcell11 // this.labelLoadcell11.BackColor = System.Drawing.SystemColors.Info; @@ -3203,6 +3843,166 @@ this.tabPage3.Size = new System.Drawing.Size(392, 533); this.tabPage3.Text = "Judgment"; // + // labelFilter15 + // + this.labelFilter15.BackColor = System.Drawing.SystemColors.ControlLight; + this.labelFilter15.BackPictureBox = null; + this.labelFilter15.BackPictureBox1 = null; + this.labelFilter15.BackPictureBox2 = null; + this.labelFilter15.BorderColor = System.Drawing.Color.Black; + this.labelFilter15.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelFilter15.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.labelFilter15.InitVisible = true; + this.labelFilter15.LineSpacing = 0F; + this.labelFilter15.Location = new System.Drawing.Point(135, 474); + this.labelFilter15.Name = "labelFilter15"; + this.labelFilter15.Size = new System.Drawing.Size(70, 25); + this.labelFilter15.TabIndex = 469; + this.labelFilter15.Text = "LoadCell 15"; + this.labelFilter15.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelFilter15.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelFilter15.Wordwrap = false; + // + // labelFilter13 + // + this.labelFilter13.BackColor = System.Drawing.SystemColors.ControlLight; + this.labelFilter13.BackPictureBox = null; + this.labelFilter13.BackPictureBox1 = null; + this.labelFilter13.BackPictureBox2 = null; + this.labelFilter13.BorderColor = System.Drawing.Color.Black; + this.labelFilter13.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelFilter13.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.labelFilter13.InitVisible = true; + this.labelFilter13.LineSpacing = 0F; + this.labelFilter13.Location = new System.Drawing.Point(135, 412); + this.labelFilter13.Name = "labelFilter13"; + this.labelFilter13.Size = new System.Drawing.Size(70, 25); + this.labelFilter13.TabIndex = 468; + this.labelFilter13.Text = "LoadCell 13"; + this.labelFilter13.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelFilter13.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelFilter13.Wordwrap = false; + // + // smartLabel30 + // + this.smartLabel30.BackColor = System.Drawing.SystemColors.Info; + this.smartLabel30.BackPictureBox = null; + this.smartLabel30.BackPictureBox1 = null; + this.smartLabel30.BackPictureBox2 = null; + this.smartLabel30.BorderColor = System.Drawing.Color.Black; + this.smartLabel30.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.smartLabel30.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); + this.smartLabel30.InitVisible = true; + this.smartLabel30.LineSpacing = 0F; + this.smartLabel30.Location = new System.Drawing.Point(29, 505); + this.smartLabel30.Name = "smartLabel30"; + this.smartLabel30.Size = new System.Drawing.Size(100, 25); + this.smartLabel30.TabIndex = 472; + this.smartLabel30.Text = "SubBoard 16"; + this.smartLabel30.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.smartLabel30.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.smartLabel30.Wordwrap = false; + // + // smartLabel31 + // + this.smartLabel31.BackColor = System.Drawing.SystemColors.Info; + this.smartLabel31.BackPictureBox = null; + this.smartLabel31.BackPictureBox1 = null; + this.smartLabel31.BackPictureBox2 = null; + this.smartLabel31.BorderColor = System.Drawing.Color.Black; + this.smartLabel31.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.smartLabel31.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); + this.smartLabel31.InitVisible = true; + this.smartLabel31.LineSpacing = 0F; + this.smartLabel31.Location = new System.Drawing.Point(29, 443); + this.smartLabel31.Name = "smartLabel31"; + this.smartLabel31.Size = new System.Drawing.Size(100, 25); + this.smartLabel31.TabIndex = 473; + this.smartLabel31.Text = "SubBoard 14"; + this.smartLabel31.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.smartLabel31.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.smartLabel31.Wordwrap = false; + // + // labelFilter16 + // + this.labelFilter16.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.labelFilter16.BackPictureBox = null; + this.labelFilter16.BackPictureBox1 = null; + this.labelFilter16.BackPictureBox2 = null; + this.labelFilter16.BorderColor = System.Drawing.Color.Black; + this.labelFilter16.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelFilter16.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.labelFilter16.InitVisible = true; + this.labelFilter16.LineSpacing = 0F; + this.labelFilter16.Location = new System.Drawing.Point(135, 505); + this.labelFilter16.Name = "labelFilter16"; + this.labelFilter16.Size = new System.Drawing.Size(70, 25); + this.labelFilter16.TabIndex = 470; + this.labelFilter16.Text = "LoadCell 16"; + this.labelFilter16.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelFilter16.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelFilter16.Wordwrap = false; + // + // labelFilter14 + // + this.labelFilter14.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.labelFilter14.BackPictureBox = null; + this.labelFilter14.BackPictureBox1 = null; + this.labelFilter14.BackPictureBox2 = null; + this.labelFilter14.BorderColor = System.Drawing.Color.Black; + this.labelFilter14.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelFilter14.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.labelFilter14.InitVisible = true; + this.labelFilter14.LineSpacing = 0F; + this.labelFilter14.Location = new System.Drawing.Point(135, 443); + this.labelFilter14.Name = "labelFilter14"; + this.labelFilter14.Size = new System.Drawing.Size(70, 25); + this.labelFilter14.TabIndex = 471; + this.labelFilter14.Text = "LoadCell 14"; + this.labelFilter14.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelFilter14.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelFilter14.Wordwrap = false; + // + // smartLabel40 + // + this.smartLabel40.BackColor = System.Drawing.SystemColors.Info; + this.smartLabel40.BackPictureBox = null; + this.smartLabel40.BackPictureBox1 = null; + this.smartLabel40.BackPictureBox2 = null; + this.smartLabel40.BorderColor = System.Drawing.Color.Black; + this.smartLabel40.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.smartLabel40.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); + this.smartLabel40.InitVisible = true; + this.smartLabel40.LineSpacing = 0F; + this.smartLabel40.Location = new System.Drawing.Point(29, 474); + this.smartLabel40.Name = "smartLabel40"; + this.smartLabel40.Size = new System.Drawing.Size(100, 25); + this.smartLabel40.TabIndex = 475; + this.smartLabel40.Text = "SubBoard 15"; + this.smartLabel40.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.smartLabel40.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.smartLabel40.Wordwrap = false; + // + // smartLabel41 + // + this.smartLabel41.BackColor = System.Drawing.SystemColors.Info; + this.smartLabel41.BackPictureBox = null; + this.smartLabel41.BackPictureBox1 = null; + this.smartLabel41.BackPictureBox2 = null; + this.smartLabel41.BorderColor = System.Drawing.Color.Black; + this.smartLabel41.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.smartLabel41.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); + this.smartLabel41.InitVisible = true; + this.smartLabel41.LineSpacing = 0F; + this.smartLabel41.Location = new System.Drawing.Point(29, 412); + this.smartLabel41.Name = "smartLabel41"; + this.smartLabel41.Size = new System.Drawing.Size(100, 25); + this.smartLabel41.TabIndex = 474; + this.smartLabel41.Text = "SubBoard 13"; + this.smartLabel41.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.smartLabel41.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.smartLabel41.Wordwrap = false; + // // smartLabel1 // this.smartLabel1.BackColor = System.Drawing.SystemColors.Info; @@ -3772,6 +4572,221 @@ this.groupBoxBypass.Text = "Bypass"; this.groupBoxBypass.TextColor = System.Drawing.Color.Black; // + // smartSeparatorLine1 + // + this.smartSeparatorLine1.InitVisible = true; + this.smartSeparatorLine1.Line1Color = System.Drawing.Color.DimGray; + this.smartSeparatorLine1.Line1Width = 1F; + this.smartSeparatorLine1.Line2Color = System.Drawing.Color.LightGray; + this.smartSeparatorLine1.Line2Visible = true; + this.smartSeparatorLine1.Line2Width = 1F; + this.smartSeparatorLine1.LineDirection = SmartX.SmartSeparatorLine.DIR.Horizontal; + this.smartSeparatorLine1.Location = new System.Drawing.Point(56, 394); + this.smartSeparatorLine1.Name = "smartSeparatorLine1"; + this.smartSeparatorLine1.Size = new System.Drawing.Size(400, 2); + this.smartSeparatorLine1.TabIndex = 11; + this.smartSeparatorLine1.Text = "smartSeparatorLine1"; + // + // buttonBypassLane16 + // + this.buttonBypassLane16.BackPictureBox = null; + this.buttonBypassLane16.BackPictureBox1 = null; + this.buttonBypassLane16.BackPictureBox2 = null; + this.buttonBypassLane16.ButtonColor = System.Drawing.Color.Gray; + this.buttonBypassLane16.ButtonImageAutoSize = true; + this.buttonBypassLane16.ColorKeySamplePosition = new System.Drawing.Point(0, 0); + this.buttonBypassLane16.DisableImage = null; + this.buttonBypassLane16.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonBypassLane16.DownImage"))); + this.buttonBypassLane16.GroupID = 0; + this.buttonBypassLane16.InitVisible = true; + this.buttonBypassLane16.Location = new System.Drawing.Point(390, 292); + this.buttonBypassLane16.Mode = SmartX.SmartButton.BUTTONMODE.PUSH; + this.buttonBypassLane16.Name = "buttonBypassLane16"; + this.buttonBypassLane16.NestedClickEventPrevent = false; + this.buttonBypassLane16.OutlinePixel = 1; + this.buttonBypassLane16.RepeatInterval = 200; + this.buttonBypassLane16.RepeatIntervalAccelerate = null; + this.buttonBypassLane16.SafeInterval = 200; + this.buttonBypassLane16.Size = new System.Drawing.Size(100, 30); + this.buttonBypassLane16.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE; + this.buttonBypassLane16.TabIndex = 9; + this.buttonBypassLane16.TextColor = System.Drawing.Color.Black; + this.buttonBypassLane16.TextDownColor = System.Drawing.Color.White; + this.buttonBypassLane16.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle; + this.buttonBypassLane16.TextLocation = new System.Drawing.Point(0, 0); + this.buttonBypassLane16.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle; + this.buttonBypassLane16.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonBypassLane16.UpImage"))); + this.buttonBypassLane16.Click += new System.EventHandler(this.buttonBypassLane_Click); + // + // buttonBypassLane15 + // + this.buttonBypassLane15.BackPictureBox = null; + this.buttonBypassLane15.BackPictureBox1 = null; + this.buttonBypassLane15.BackPictureBox2 = null; + this.buttonBypassLane15.ButtonColor = System.Drawing.Color.Gray; + this.buttonBypassLane15.ButtonImageAutoSize = true; + this.buttonBypassLane15.ColorKeySamplePosition = new System.Drawing.Point(0, 0); + this.buttonBypassLane15.DisableImage = null; + this.buttonBypassLane15.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonBypassLane15.DownImage"))); + this.buttonBypassLane15.GroupID = 0; + this.buttonBypassLane15.InitVisible = true; + this.buttonBypassLane15.Location = new System.Drawing.Point(149, 292); + this.buttonBypassLane15.Mode = SmartX.SmartButton.BUTTONMODE.PUSH; + this.buttonBypassLane15.Name = "buttonBypassLane15"; + this.buttonBypassLane15.NestedClickEventPrevent = false; + this.buttonBypassLane15.OutlinePixel = 1; + this.buttonBypassLane15.RepeatInterval = 200; + this.buttonBypassLane15.RepeatIntervalAccelerate = null; + this.buttonBypassLane15.SafeInterval = 200; + this.buttonBypassLane15.Size = new System.Drawing.Size(100, 30); + this.buttonBypassLane15.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE; + this.buttonBypassLane15.TabIndex = 10; + this.buttonBypassLane15.TextColor = System.Drawing.Color.Black; + this.buttonBypassLane15.TextDownColor = System.Drawing.Color.White; + this.buttonBypassLane15.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle; + this.buttonBypassLane15.TextLocation = new System.Drawing.Point(0, 0); + this.buttonBypassLane15.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle; + this.buttonBypassLane15.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonBypassLane15.UpImage"))); + this.buttonBypassLane15.Click += new System.EventHandler(this.buttonBypassLane_Click); + // + // labelTitleLine16 + // + this.labelTitleLine16.BackPictureBox = this.smartForm1; + this.labelTitleLine16.BackPictureBox1 = null; + this.labelTitleLine16.BackPictureBox2 = null; + this.labelTitleLine16.BorderColor = System.Drawing.Color.Black; + this.labelTitleLine16.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelTitleLine16.Font = new System.Drawing.Font("New Gulim", 12F, System.Drawing.FontStyle.Bold); + this.labelTitleLine16.InitVisible = true; + this.labelTitleLine16.LineSpacing = 0F; + this.labelTitleLine16.Location = new System.Drawing.Point(264, 292); + this.labelTitleLine16.Name = "labelTitleLine16"; + this.labelTitleLine16.Size = new System.Drawing.Size(120, 30); + this.labelTitleLine16.TabIndex = 7; + this.labelTitleLine16.Text = "Lane 16"; + this.labelTitleLine16.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelTitleLine16.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelTitleLine16.Wordwrap = false; + // + // labelTitleLine15 + // + this.labelTitleLine15.BackPictureBox = this.smartForm1; + this.labelTitleLine15.BackPictureBox1 = null; + this.labelTitleLine15.BackPictureBox2 = null; + this.labelTitleLine15.BorderColor = System.Drawing.Color.Black; + this.labelTitleLine15.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelTitleLine15.Font = new System.Drawing.Font("New Gulim", 12F, System.Drawing.FontStyle.Bold); + this.labelTitleLine15.InitVisible = true; + this.labelTitleLine15.LineSpacing = 0F; + this.labelTitleLine15.Location = new System.Drawing.Point(23, 292); + this.labelTitleLine15.Name = "labelTitleLine15"; + this.labelTitleLine15.Size = new System.Drawing.Size(120, 30); + this.labelTitleLine15.TabIndex = 8; + this.labelTitleLine15.Text = "Lane 15"; + this.labelTitleLine15.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelTitleLine15.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelTitleLine15.Wordwrap = false; + // + // buttonBypassLane14 + // + this.buttonBypassLane14.BackPictureBox = null; + this.buttonBypassLane14.BackPictureBox1 = null; + this.buttonBypassLane14.BackPictureBox2 = null; + this.buttonBypassLane14.ButtonColor = System.Drawing.Color.Gray; + this.buttonBypassLane14.ButtonImageAutoSize = true; + this.buttonBypassLane14.ColorKeySamplePosition = new System.Drawing.Point(0, 0); + this.buttonBypassLane14.DisableImage = null; + this.buttonBypassLane14.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonBypassLane14.DownImage"))); + this.buttonBypassLane14.GroupID = 0; + this.buttonBypassLane14.InitVisible = true; + this.buttonBypassLane14.Location = new System.Drawing.Point(390, 256); + this.buttonBypassLane14.Mode = SmartX.SmartButton.BUTTONMODE.PUSH; + this.buttonBypassLane14.Name = "buttonBypassLane14"; + this.buttonBypassLane14.NestedClickEventPrevent = false; + this.buttonBypassLane14.OutlinePixel = 1; + this.buttonBypassLane14.RepeatInterval = 200; + this.buttonBypassLane14.RepeatIntervalAccelerate = null; + this.buttonBypassLane14.SafeInterval = 200; + this.buttonBypassLane14.Size = new System.Drawing.Size(100, 30); + this.buttonBypassLane14.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE; + this.buttonBypassLane14.TabIndex = 5; + this.buttonBypassLane14.TextColor = System.Drawing.Color.Black; + this.buttonBypassLane14.TextDownColor = System.Drawing.Color.White; + this.buttonBypassLane14.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle; + this.buttonBypassLane14.TextLocation = new System.Drawing.Point(0, 0); + this.buttonBypassLane14.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle; + this.buttonBypassLane14.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonBypassLane14.UpImage"))); + this.buttonBypassLane14.Click += new System.EventHandler(this.buttonBypassLane_Click); + // + // buttonBypassLane13 + // + this.buttonBypassLane13.BackPictureBox = null; + this.buttonBypassLane13.BackPictureBox1 = null; + this.buttonBypassLane13.BackPictureBox2 = null; + this.buttonBypassLane13.ButtonColor = System.Drawing.Color.Gray; + this.buttonBypassLane13.ButtonImageAutoSize = true; + this.buttonBypassLane13.ColorKeySamplePosition = new System.Drawing.Point(0, 0); + this.buttonBypassLane13.DisableImage = null; + this.buttonBypassLane13.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonBypassLane13.DownImage"))); + this.buttonBypassLane13.GroupID = 0; + this.buttonBypassLane13.InitVisible = true; + this.buttonBypassLane13.Location = new System.Drawing.Point(149, 256); + this.buttonBypassLane13.Mode = SmartX.SmartButton.BUTTONMODE.PUSH; + this.buttonBypassLane13.Name = "buttonBypassLane13"; + this.buttonBypassLane13.NestedClickEventPrevent = false; + this.buttonBypassLane13.OutlinePixel = 1; + this.buttonBypassLane13.RepeatInterval = 200; + this.buttonBypassLane13.RepeatIntervalAccelerate = null; + this.buttonBypassLane13.SafeInterval = 200; + this.buttonBypassLane13.Size = new System.Drawing.Size(100, 30); + this.buttonBypassLane13.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE; + this.buttonBypassLane13.TabIndex = 6; + this.buttonBypassLane13.TextColor = System.Drawing.Color.Black; + this.buttonBypassLane13.TextDownColor = System.Drawing.Color.White; + this.buttonBypassLane13.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle; + this.buttonBypassLane13.TextLocation = new System.Drawing.Point(0, 0); + this.buttonBypassLane13.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle; + this.buttonBypassLane13.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonBypassLane13.UpImage"))); + this.buttonBypassLane13.Click += new System.EventHandler(this.buttonBypassLane_Click); + // + // labelTitleLine14 + // + this.labelTitleLine14.BackPictureBox = this.smartForm1; + this.labelTitleLine14.BackPictureBox1 = null; + this.labelTitleLine14.BackPictureBox2 = null; + this.labelTitleLine14.BorderColor = System.Drawing.Color.Black; + this.labelTitleLine14.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelTitleLine14.Font = new System.Drawing.Font("New Gulim", 12F, System.Drawing.FontStyle.Bold); + this.labelTitleLine14.InitVisible = true; + this.labelTitleLine14.LineSpacing = 0F; + this.labelTitleLine14.Location = new System.Drawing.Point(264, 256); + this.labelTitleLine14.Name = "labelTitleLine14"; + this.labelTitleLine14.Size = new System.Drawing.Size(120, 30); + this.labelTitleLine14.TabIndex = 3; + this.labelTitleLine14.Text = "Lane 14"; + this.labelTitleLine14.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelTitleLine14.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelTitleLine14.Wordwrap = false; + // + // labelTitleLine13 + // + this.labelTitleLine13.BackPictureBox = this.smartForm1; + this.labelTitleLine13.BackPictureBox1 = null; + this.labelTitleLine13.BackPictureBox2 = null; + this.labelTitleLine13.BorderColor = System.Drawing.Color.Black; + this.labelTitleLine13.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.labelTitleLine13.Font = new System.Drawing.Font("New Gulim", 12F, System.Drawing.FontStyle.Bold); + this.labelTitleLine13.InitVisible = true; + this.labelTitleLine13.LineSpacing = 0F; + this.labelTitleLine13.Location = new System.Drawing.Point(23, 256); + this.labelTitleLine13.Name = "labelTitleLine13"; + this.labelTitleLine13.Size = new System.Drawing.Size(120, 30); + this.labelTitleLine13.TabIndex = 4; + this.labelTitleLine13.Text = "Lane 13"; + this.labelTitleLine13.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; + this.labelTitleLine13.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; + this.labelTitleLine13.Wordwrap = false; + // // buttonSaveBypass // this.buttonSaveBypass.Enabled = false; @@ -4414,1021 +5429,6 @@ this.buttonScreen.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonScreen.UpImage"))); this.buttonScreen.Click += new System.EventHandler(this.buttonScreen_Click); // - // buttonBypassLane14 - // - this.buttonBypassLane14.BackPictureBox = null; - this.buttonBypassLane14.BackPictureBox1 = null; - this.buttonBypassLane14.BackPictureBox2 = null; - this.buttonBypassLane14.ButtonColor = System.Drawing.Color.Gray; - this.buttonBypassLane14.ButtonImageAutoSize = true; - this.buttonBypassLane14.ColorKeySamplePosition = new System.Drawing.Point(0, 0); - this.buttonBypassLane14.DisableImage = null; - this.buttonBypassLane14.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonBypassLane14.DownImage"))); - this.buttonBypassLane14.GroupID = 0; - this.buttonBypassLane14.InitVisible = true; - this.buttonBypassLane14.Location = new System.Drawing.Point(390, 256); - this.buttonBypassLane14.Mode = SmartX.SmartButton.BUTTONMODE.PUSH; - this.buttonBypassLane14.Name = "buttonBypassLane14"; - this.buttonBypassLane14.NestedClickEventPrevent = false; - this.buttonBypassLane14.OutlinePixel = 1; - this.buttonBypassLane14.RepeatInterval = 200; - this.buttonBypassLane14.RepeatIntervalAccelerate = null; - this.buttonBypassLane14.SafeInterval = 200; - this.buttonBypassLane14.Size = new System.Drawing.Size(100, 30); - this.buttonBypassLane14.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE; - this.buttonBypassLane14.TabIndex = 5; - this.buttonBypassLane14.TextColor = System.Drawing.Color.Black; - this.buttonBypassLane14.TextDownColor = System.Drawing.Color.White; - this.buttonBypassLane14.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle; - this.buttonBypassLane14.TextLocation = new System.Drawing.Point(0, 0); - this.buttonBypassLane14.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle; - this.buttonBypassLane14.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonBypassLane14.UpImage"))); - this.buttonBypassLane14.Click += new System.EventHandler(this.buttonBypassLane_Click); - // - // buttonBypassLane13 - // - this.buttonBypassLane13.BackPictureBox = null; - this.buttonBypassLane13.BackPictureBox1 = null; - this.buttonBypassLane13.BackPictureBox2 = null; - this.buttonBypassLane13.ButtonColor = System.Drawing.Color.Gray; - this.buttonBypassLane13.ButtonImageAutoSize = true; - this.buttonBypassLane13.ColorKeySamplePosition = new System.Drawing.Point(0, 0); - this.buttonBypassLane13.DisableImage = null; - this.buttonBypassLane13.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonBypassLane13.DownImage"))); - this.buttonBypassLane13.GroupID = 0; - this.buttonBypassLane13.InitVisible = true; - this.buttonBypassLane13.Location = new System.Drawing.Point(149, 256); - this.buttonBypassLane13.Mode = SmartX.SmartButton.BUTTONMODE.PUSH; - this.buttonBypassLane13.Name = "buttonBypassLane13"; - this.buttonBypassLane13.NestedClickEventPrevent = false; - this.buttonBypassLane13.OutlinePixel = 1; - this.buttonBypassLane13.RepeatInterval = 200; - this.buttonBypassLane13.RepeatIntervalAccelerate = null; - this.buttonBypassLane13.SafeInterval = 200; - this.buttonBypassLane13.Size = new System.Drawing.Size(100, 30); - this.buttonBypassLane13.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE; - this.buttonBypassLane13.TabIndex = 6; - this.buttonBypassLane13.TextColor = System.Drawing.Color.Black; - this.buttonBypassLane13.TextDownColor = System.Drawing.Color.White; - this.buttonBypassLane13.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle; - this.buttonBypassLane13.TextLocation = new System.Drawing.Point(0, 0); - this.buttonBypassLane13.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle; - this.buttonBypassLane13.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonBypassLane13.UpImage"))); - this.buttonBypassLane13.Click += new System.EventHandler(this.buttonBypassLane_Click); - // - // labelTitleLine14 - // - this.labelTitleLine14.BackPictureBox = this.smartForm1; - this.labelTitleLine14.BackPictureBox1 = null; - this.labelTitleLine14.BackPictureBox2 = null; - this.labelTitleLine14.BorderColor = System.Drawing.Color.Black; - this.labelTitleLine14.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelTitleLine14.Font = new System.Drawing.Font("New Gulim", 12F, System.Drawing.FontStyle.Bold); - this.labelTitleLine14.InitVisible = true; - this.labelTitleLine14.LineSpacing = 0F; - this.labelTitleLine14.Location = new System.Drawing.Point(264, 256); - this.labelTitleLine14.Name = "labelTitleLine14"; - this.labelTitleLine14.Size = new System.Drawing.Size(120, 30); - this.labelTitleLine14.TabIndex = 3; - this.labelTitleLine14.Text = "Lane 14"; - this.labelTitleLine14.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelTitleLine14.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelTitleLine14.Wordwrap = false; - // - // labelTitleLine13 - // - this.labelTitleLine13.BackPictureBox = this.smartForm1; - this.labelTitleLine13.BackPictureBox1 = null; - this.labelTitleLine13.BackPictureBox2 = null; - this.labelTitleLine13.BorderColor = System.Drawing.Color.Black; - this.labelTitleLine13.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelTitleLine13.Font = new System.Drawing.Font("New Gulim", 12F, System.Drawing.FontStyle.Bold); - this.labelTitleLine13.InitVisible = true; - this.labelTitleLine13.LineSpacing = 0F; - this.labelTitleLine13.Location = new System.Drawing.Point(23, 256); - this.labelTitleLine13.Name = "labelTitleLine13"; - this.labelTitleLine13.Size = new System.Drawing.Size(120, 30); - this.labelTitleLine13.TabIndex = 4; - this.labelTitleLine13.Text = "Lane 13"; - this.labelTitleLine13.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelTitleLine13.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelTitleLine13.Wordwrap = false; - // - // buttonBypassLane16 - // - this.buttonBypassLane16.BackPictureBox = null; - this.buttonBypassLane16.BackPictureBox1 = null; - this.buttonBypassLane16.BackPictureBox2 = null; - this.buttonBypassLane16.ButtonColor = System.Drawing.Color.Gray; - this.buttonBypassLane16.ButtonImageAutoSize = true; - this.buttonBypassLane16.ColorKeySamplePosition = new System.Drawing.Point(0, 0); - this.buttonBypassLane16.DisableImage = null; - this.buttonBypassLane16.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonBypassLane16.DownImage"))); - this.buttonBypassLane16.GroupID = 0; - this.buttonBypassLane16.InitVisible = true; - this.buttonBypassLane16.Location = new System.Drawing.Point(390, 292); - this.buttonBypassLane16.Mode = SmartX.SmartButton.BUTTONMODE.PUSH; - this.buttonBypassLane16.Name = "buttonBypassLane16"; - this.buttonBypassLane16.NestedClickEventPrevent = false; - this.buttonBypassLane16.OutlinePixel = 1; - this.buttonBypassLane16.RepeatInterval = 200; - this.buttonBypassLane16.RepeatIntervalAccelerate = null; - this.buttonBypassLane16.SafeInterval = 200; - this.buttonBypassLane16.Size = new System.Drawing.Size(100, 30); - this.buttonBypassLane16.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE; - this.buttonBypassLane16.TabIndex = 9; - this.buttonBypassLane16.TextColor = System.Drawing.Color.Black; - this.buttonBypassLane16.TextDownColor = System.Drawing.Color.White; - this.buttonBypassLane16.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle; - this.buttonBypassLane16.TextLocation = new System.Drawing.Point(0, 0); - this.buttonBypassLane16.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle; - this.buttonBypassLane16.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonBypassLane16.UpImage"))); - this.buttonBypassLane16.Click += new System.EventHandler(this.buttonBypassLane_Click); - // - // buttonBypassLane15 - // - this.buttonBypassLane15.BackPictureBox = null; - this.buttonBypassLane15.BackPictureBox1 = null; - this.buttonBypassLane15.BackPictureBox2 = null; - this.buttonBypassLane15.ButtonColor = System.Drawing.Color.Gray; - this.buttonBypassLane15.ButtonImageAutoSize = true; - this.buttonBypassLane15.ColorKeySamplePosition = new System.Drawing.Point(0, 0); - this.buttonBypassLane15.DisableImage = null; - this.buttonBypassLane15.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonBypassLane15.DownImage"))); - this.buttonBypassLane15.GroupID = 0; - this.buttonBypassLane15.InitVisible = true; - this.buttonBypassLane15.Location = new System.Drawing.Point(149, 292); - this.buttonBypassLane15.Mode = SmartX.SmartButton.BUTTONMODE.PUSH; - this.buttonBypassLane15.Name = "buttonBypassLane15"; - this.buttonBypassLane15.NestedClickEventPrevent = false; - this.buttonBypassLane15.OutlinePixel = 1; - this.buttonBypassLane15.RepeatInterval = 200; - this.buttonBypassLane15.RepeatIntervalAccelerate = null; - this.buttonBypassLane15.SafeInterval = 200; - this.buttonBypassLane15.Size = new System.Drawing.Size(100, 30); - this.buttonBypassLane15.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE; - this.buttonBypassLane15.TabIndex = 10; - this.buttonBypassLane15.TextColor = System.Drawing.Color.Black; - this.buttonBypassLane15.TextDownColor = System.Drawing.Color.White; - this.buttonBypassLane15.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle; - this.buttonBypassLane15.TextLocation = new System.Drawing.Point(0, 0); - this.buttonBypassLane15.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle; - this.buttonBypassLane15.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonBypassLane15.UpImage"))); - this.buttonBypassLane15.Click += new System.EventHandler(this.buttonBypassLane_Click); - // - // labelTitleLine16 - // - this.labelTitleLine16.BackPictureBox = this.smartForm1; - this.labelTitleLine16.BackPictureBox1 = null; - this.labelTitleLine16.BackPictureBox2 = null; - this.labelTitleLine16.BorderColor = System.Drawing.Color.Black; - this.labelTitleLine16.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelTitleLine16.Font = new System.Drawing.Font("New Gulim", 12F, System.Drawing.FontStyle.Bold); - this.labelTitleLine16.InitVisible = true; - this.labelTitleLine16.LineSpacing = 0F; - this.labelTitleLine16.Location = new System.Drawing.Point(264, 292); - this.labelTitleLine16.Name = "labelTitleLine16"; - this.labelTitleLine16.Size = new System.Drawing.Size(120, 30); - this.labelTitleLine16.TabIndex = 7; - this.labelTitleLine16.Text = "Lane 16"; - this.labelTitleLine16.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelTitleLine16.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelTitleLine16.Wordwrap = false; - // - // labelTitleLine15 - // - this.labelTitleLine15.BackPictureBox = this.smartForm1; - this.labelTitleLine15.BackPictureBox1 = null; - this.labelTitleLine15.BackPictureBox2 = null; - this.labelTitleLine15.BorderColor = System.Drawing.Color.Black; - this.labelTitleLine15.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelTitleLine15.Font = new System.Drawing.Font("New Gulim", 12F, System.Drawing.FontStyle.Bold); - this.labelTitleLine15.InitVisible = true; - this.labelTitleLine15.LineSpacing = 0F; - this.labelTitleLine15.Location = new System.Drawing.Point(23, 292); - this.labelTitleLine15.Name = "labelTitleLine15"; - this.labelTitleLine15.Size = new System.Drawing.Size(120, 30); - this.labelTitleLine15.TabIndex = 8; - this.labelTitleLine15.Text = "Lane 15"; - this.labelTitleLine15.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelTitleLine15.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelTitleLine15.Wordwrap = false; - // - // smartSeparatorLine1 - // - this.smartSeparatorLine1.InitVisible = true; - this.smartSeparatorLine1.Line1Color = System.Drawing.Color.DimGray; - this.smartSeparatorLine1.Line1Width = 1F; - this.smartSeparatorLine1.Line2Color = System.Drawing.Color.LightGray; - this.smartSeparatorLine1.Line2Visible = true; - this.smartSeparatorLine1.Line2Width = 1F; - this.smartSeparatorLine1.LineDirection = SmartX.SmartSeparatorLine.DIR.Horizontal; - this.smartSeparatorLine1.Location = new System.Drawing.Point(56, 394); - this.smartSeparatorLine1.Name = "smartSeparatorLine1"; - this.smartSeparatorLine1.Size = new System.Drawing.Size(400, 2); - this.smartSeparatorLine1.TabIndex = 11; - this.smartSeparatorLine1.Text = "smartSeparatorLine1"; - // - // smartLabel3 - // - this.smartLabel3.BackColor = System.Drawing.SystemColors.Info; - this.smartLabel3.BackPictureBox = null; - this.smartLabel3.BackPictureBox1 = null; - this.smartLabel3.BackPictureBox2 = null; - this.smartLabel3.BorderColor = System.Drawing.Color.Black; - this.smartLabel3.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.smartLabel3.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); - this.smartLabel3.InitVisible = true; - this.smartLabel3.LineSpacing = 0F; - this.smartLabel3.Location = new System.Drawing.Point(29, 505); - this.smartLabel3.Name = "smartLabel3"; - this.smartLabel3.Size = new System.Drawing.Size(100, 25); - this.smartLabel3.TabIndex = 447; - this.smartLabel3.Text = "SubBoard 16"; - this.smartLabel3.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.smartLabel3.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.smartLabel3.Wordwrap = false; - // - // smartLabel5 - // - this.smartLabel5.BackColor = System.Drawing.SystemColors.Info; - this.smartLabel5.BackPictureBox = null; - this.smartLabel5.BackPictureBox1 = null; - this.smartLabel5.BackPictureBox2 = null; - this.smartLabel5.BorderColor = System.Drawing.Color.Black; - this.smartLabel5.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.smartLabel5.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); - this.smartLabel5.InitVisible = true; - this.smartLabel5.LineSpacing = 0F; - this.smartLabel5.Location = new System.Drawing.Point(29, 443); - this.smartLabel5.Name = "smartLabel5"; - this.smartLabel5.Size = new System.Drawing.Size(100, 25); - this.smartLabel5.TabIndex = 446; - this.smartLabel5.Text = "SubBoard 14"; - this.smartLabel5.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.smartLabel5.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.smartLabel5.Wordwrap = false; - // - // smartLabel8 - // - this.smartLabel8.BackColor = System.Drawing.SystemColors.Info; - this.smartLabel8.BackPictureBox = null; - this.smartLabel8.BackPictureBox1 = null; - this.smartLabel8.BackPictureBox2 = null; - this.smartLabel8.BorderColor = System.Drawing.Color.Black; - this.smartLabel8.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.smartLabel8.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); - this.smartLabel8.InitVisible = true; - this.smartLabel8.LineSpacing = 0F; - this.smartLabel8.Location = new System.Drawing.Point(29, 474); - this.smartLabel8.Name = "smartLabel8"; - this.smartLabel8.Size = new System.Drawing.Size(100, 25); - this.smartLabel8.TabIndex = 448; - this.smartLabel8.Text = "SubBoard 15"; - this.smartLabel8.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.smartLabel8.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.smartLabel8.Wordwrap = false; - // - // smartLabel12 - // - this.smartLabel12.BackColor = System.Drawing.SystemColors.Info; - this.smartLabel12.BackPictureBox = null; - this.smartLabel12.BackPictureBox1 = null; - this.smartLabel12.BackPictureBox2 = null; - this.smartLabel12.BorderColor = System.Drawing.Color.Black; - this.smartLabel12.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.smartLabel12.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); - this.smartLabel12.InitVisible = true; - this.smartLabel12.LineSpacing = 0F; - this.smartLabel12.Location = new System.Drawing.Point(29, 412); - this.smartLabel12.Name = "smartLabel12"; - this.smartLabel12.Size = new System.Drawing.Size(100, 25); - this.smartLabel12.TabIndex = 449; - this.smartLabel12.Text = "SubBoard 13"; - this.smartLabel12.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.smartLabel12.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.smartLabel12.Wordwrap = false; - // - // labelZeroVariate16 - // - this.labelZeroVariate16.BackColor = System.Drawing.SystemColors.ControlLightLight; - this.labelZeroVariate16.BackPictureBox = null; - this.labelZeroVariate16.BackPictureBox1 = null; - this.labelZeroVariate16.BackPictureBox2 = null; - this.labelZeroVariate16.BorderColor = System.Drawing.Color.Black; - this.labelZeroVariate16.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelZeroVariate16.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); - this.labelZeroVariate16.InitVisible = true; - this.labelZeroVariate16.LineSpacing = 0F; - this.labelZeroVariate16.Location = new System.Drawing.Point(287, 505); - this.labelZeroVariate16.Name = "labelZeroVariate16"; - this.labelZeroVariate16.Size = new System.Drawing.Size(70, 25); - this.labelZeroVariate16.TabIndex = 444; - this.labelZeroVariate16.Text = "LoadCell 16"; - this.labelZeroVariate16.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelZeroVariate16.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelZeroVariate16.Wordwrap = false; - // - // labelZeroVariate14 - // - this.labelZeroVariate14.BackColor = System.Drawing.SystemColors.ControlLightLight; - this.labelZeroVariate14.BackPictureBox = null; - this.labelZeroVariate14.BackPictureBox1 = null; - this.labelZeroVariate14.BackPictureBox2 = null; - this.labelZeroVariate14.BorderColor = System.Drawing.Color.Black; - this.labelZeroVariate14.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelZeroVariate14.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); - this.labelZeroVariate14.InitVisible = true; - this.labelZeroVariate14.LineSpacing = 0F; - this.labelZeroVariate14.Location = new System.Drawing.Point(287, 443); - this.labelZeroVariate14.Name = "labelZeroVariate14"; - this.labelZeroVariate14.Size = new System.Drawing.Size(70, 25); - this.labelZeroVariate14.TabIndex = 445; - this.labelZeroVariate14.Text = "LoadCell 14"; - this.labelZeroVariate14.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelZeroVariate14.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelZeroVariate14.Wordwrap = false; - // - // labelZeroRange15 - // - this.labelZeroRange15.BackColor = System.Drawing.SystemColors.ControlLight; - this.labelZeroRange15.BackPictureBox = null; - this.labelZeroRange15.BackPictureBox1 = null; - this.labelZeroRange15.BackPictureBox2 = null; - this.labelZeroRange15.BorderColor = System.Drawing.Color.Black; - this.labelZeroRange15.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelZeroRange15.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); - this.labelZeroRange15.InitVisible = true; - this.labelZeroRange15.LineSpacing = 0F; - this.labelZeroRange15.Location = new System.Drawing.Point(135, 474); - this.labelZeroRange15.Name = "labelZeroRange15"; - this.labelZeroRange15.Size = new System.Drawing.Size(70, 25); - this.labelZeroRange15.TabIndex = 436; - this.labelZeroRange15.Text = "LoadCell 15"; - this.labelZeroRange15.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelZeroRange15.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelZeroRange15.Wordwrap = false; - // - // labelZeroRange13 - // - this.labelZeroRange13.BackColor = System.Drawing.SystemColors.ControlLight; - this.labelZeroRange13.BackPictureBox = null; - this.labelZeroRange13.BackPictureBox1 = null; - this.labelZeroRange13.BackPictureBox2 = null; - this.labelZeroRange13.BorderColor = System.Drawing.Color.Black; - this.labelZeroRange13.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelZeroRange13.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); - this.labelZeroRange13.InitVisible = true; - this.labelZeroRange13.LineSpacing = 0F; - this.labelZeroRange13.Location = new System.Drawing.Point(135, 412); - this.labelZeroRange13.Name = "labelZeroRange13"; - this.labelZeroRange13.Size = new System.Drawing.Size(70, 25); - this.labelZeroRange13.TabIndex = 437; - this.labelZeroRange13.Text = "LoadCell 13"; - this.labelZeroRange13.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelZeroRange13.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelZeroRange13.Wordwrap = false; - // - // labelZeroVariate15 - // - this.labelZeroVariate15.BackColor = System.Drawing.SystemColors.ControlLight; - this.labelZeroVariate15.BackPictureBox = null; - this.labelZeroVariate15.BackPictureBox1 = null; - this.labelZeroVariate15.BackPictureBox2 = null; - this.labelZeroVariate15.BorderColor = System.Drawing.Color.Black; - this.labelZeroVariate15.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelZeroVariate15.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); - this.labelZeroVariate15.InitVisible = true; - this.labelZeroVariate15.LineSpacing = 0F; - this.labelZeroVariate15.Location = new System.Drawing.Point(287, 474); - this.labelZeroVariate15.Name = "labelZeroVariate15"; - this.labelZeroVariate15.Size = new System.Drawing.Size(70, 25); - this.labelZeroVariate15.TabIndex = 443; - this.labelZeroVariate15.Text = "LoadCell 15"; - this.labelZeroVariate15.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelZeroVariate15.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelZeroVariate15.Wordwrap = false; - // - // labelZeroVariate13 - // - this.labelZeroVariate13.BackColor = System.Drawing.SystemColors.ControlLight; - this.labelZeroVariate13.BackPictureBox = null; - this.labelZeroVariate13.BackPictureBox1 = null; - this.labelZeroVariate13.BackPictureBox2 = null; - this.labelZeroVariate13.BorderColor = System.Drawing.Color.Black; - this.labelZeroVariate13.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelZeroVariate13.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); - this.labelZeroVariate13.InitVisible = true; - this.labelZeroVariate13.LineSpacing = 0F; - this.labelZeroVariate13.Location = new System.Drawing.Point(287, 412); - this.labelZeroVariate13.Name = "labelZeroVariate13"; - this.labelZeroVariate13.Size = new System.Drawing.Size(70, 25); - this.labelZeroVariate13.TabIndex = 442; - this.labelZeroVariate13.Text = "LoadCell 13"; - this.labelZeroVariate13.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelZeroVariate13.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelZeroVariate13.Wordwrap = false; - // - // labelZeroRange16 - // - this.labelZeroRange16.BackColor = System.Drawing.SystemColors.ControlLightLight; - this.labelZeroRange16.BackPictureBox = null; - this.labelZeroRange16.BackPictureBox1 = null; - this.labelZeroRange16.BackPictureBox2 = null; - this.labelZeroRange16.BorderColor = System.Drawing.Color.Black; - this.labelZeroRange16.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelZeroRange16.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); - this.labelZeroRange16.InitVisible = true; - this.labelZeroRange16.LineSpacing = 0F; - this.labelZeroRange16.Location = new System.Drawing.Point(135, 505); - this.labelZeroRange16.Name = "labelZeroRange16"; - this.labelZeroRange16.Size = new System.Drawing.Size(70, 25); - this.labelZeroRange16.TabIndex = 438; - this.labelZeroRange16.Text = "LoadCell 16"; - this.labelZeroRange16.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelZeroRange16.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelZeroRange16.Wordwrap = false; - // - // labelZeroRange14 - // - this.labelZeroRange14.BackColor = System.Drawing.SystemColors.ControlLightLight; - this.labelZeroRange14.BackPictureBox = null; - this.labelZeroRange14.BackPictureBox1 = null; - this.labelZeroRange14.BackPictureBox2 = null; - this.labelZeroRange14.BorderColor = System.Drawing.Color.Black; - this.labelZeroRange14.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelZeroRange14.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); - this.labelZeroRange14.InitVisible = true; - this.labelZeroRange14.LineSpacing = 0F; - this.labelZeroRange14.Location = new System.Drawing.Point(135, 443); - this.labelZeroRange14.Name = "labelZeroRange14"; - this.labelZeroRange14.Size = new System.Drawing.Size(70, 25); - this.labelZeroRange14.TabIndex = 439; - this.labelZeroRange14.Text = "LoadCell 14"; - this.labelZeroRange14.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelZeroRange14.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelZeroRange14.Wordwrap = false; - // - // labelZeroTime15 - // - this.labelZeroTime15.BackColor = System.Drawing.SystemColors.ControlLight; - this.labelZeroTime15.BackPictureBox = null; - this.labelZeroTime15.BackPictureBox1 = null; - this.labelZeroTime15.BackPictureBox2 = null; - this.labelZeroTime15.BorderColor = System.Drawing.Color.Black; - this.labelZeroTime15.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelZeroTime15.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); - this.labelZeroTime15.InitVisible = true; - this.labelZeroTime15.LineSpacing = 0F; - this.labelZeroTime15.Location = new System.Drawing.Point(211, 474); - this.labelZeroTime15.Name = "labelZeroTime15"; - this.labelZeroTime15.Size = new System.Drawing.Size(70, 25); - this.labelZeroTime15.TabIndex = 435; - this.labelZeroTime15.Text = "LoadCell 15"; - this.labelZeroTime15.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelZeroTime15.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelZeroTime15.Wordwrap = false; - // - // labelZeroTime13 - // - this.labelZeroTime13.BackColor = System.Drawing.SystemColors.ControlLight; - this.labelZeroTime13.BackPictureBox = null; - this.labelZeroTime13.BackPictureBox1 = null; - this.labelZeroTime13.BackPictureBox2 = null; - this.labelZeroTime13.BorderColor = System.Drawing.Color.Black; - this.labelZeroTime13.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelZeroTime13.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); - this.labelZeroTime13.InitVisible = true; - this.labelZeroTime13.LineSpacing = 0F; - this.labelZeroTime13.Location = new System.Drawing.Point(211, 412); - this.labelZeroTime13.Name = "labelZeroTime13"; - this.labelZeroTime13.Size = new System.Drawing.Size(70, 25); - this.labelZeroTime13.TabIndex = 434; - this.labelZeroTime13.Text = "LoadCell 13"; - this.labelZeroTime13.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelZeroTime13.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelZeroTime13.Wordwrap = false; - // - // labelZeroTime16 - // - this.labelZeroTime16.BackColor = System.Drawing.SystemColors.ControlLightLight; - this.labelZeroTime16.BackPictureBox = null; - this.labelZeroTime16.BackPictureBox1 = null; - this.labelZeroTime16.BackPictureBox2 = null; - this.labelZeroTime16.BorderColor = System.Drawing.Color.Black; - this.labelZeroTime16.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelZeroTime16.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); - this.labelZeroTime16.InitVisible = true; - this.labelZeroTime16.LineSpacing = 0F; - this.labelZeroTime16.Location = new System.Drawing.Point(211, 505); - this.labelZeroTime16.Name = "labelZeroTime16"; - this.labelZeroTime16.Size = new System.Drawing.Size(70, 25); - this.labelZeroTime16.TabIndex = 440; - this.labelZeroTime16.Text = "LoadCell 16"; - this.labelZeroTime16.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelZeroTime16.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelZeroTime16.Wordwrap = false; - // - // labelZeroTime14 - // - this.labelZeroTime14.BackColor = System.Drawing.SystemColors.ControlLightLight; - this.labelZeroTime14.BackPictureBox = null; - this.labelZeroTime14.BackPictureBox1 = null; - this.labelZeroTime14.BackPictureBox2 = null; - this.labelZeroTime14.BorderColor = System.Drawing.Color.Black; - this.labelZeroTime14.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelZeroTime14.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); - this.labelZeroTime14.InitVisible = true; - this.labelZeroTime14.LineSpacing = 0F; - this.labelZeroTime14.Location = new System.Drawing.Point(211, 443); - this.labelZeroTime14.Name = "labelZeroTime14"; - this.labelZeroTime14.Size = new System.Drawing.Size(70, 25); - this.labelZeroTime14.TabIndex = 441; - this.labelZeroTime14.Text = "LoadCell 14"; - this.labelZeroTime14.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelZeroTime14.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelZeroTime14.Wordwrap = false; - // - // labelBalanceWeight15 - // - this.labelBalanceWeight15.BackColor = System.Drawing.SystemColors.ControlLight; - this.labelBalanceWeight15.BackPictureBox = null; - this.labelBalanceWeight15.BackPictureBox1 = null; - this.labelBalanceWeight15.BackPictureBox2 = null; - this.labelBalanceWeight15.BorderColor = System.Drawing.Color.Black; - this.labelBalanceWeight15.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelBalanceWeight15.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); - this.labelBalanceWeight15.InitVisible = true; - this.labelBalanceWeight15.LineSpacing = 0F; - this.labelBalanceWeight15.Location = new System.Drawing.Point(135, 474); - this.labelBalanceWeight15.Name = "labelBalanceWeight15"; - this.labelBalanceWeight15.Size = new System.Drawing.Size(70, 25); - this.labelBalanceWeight15.TabIndex = 457; - this.labelBalanceWeight15.Text = "LoadCell 15"; - this.labelBalanceWeight15.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelBalanceWeight15.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelBalanceWeight15.Wordwrap = false; - // - // labelBalanceWeight13 - // - this.labelBalanceWeight13.BackColor = System.Drawing.SystemColors.ControlLight; - this.labelBalanceWeight13.BackPictureBox = null; - this.labelBalanceWeight13.BackPictureBox1 = null; - this.labelBalanceWeight13.BackPictureBox2 = null; - this.labelBalanceWeight13.BorderColor = System.Drawing.Color.Black; - this.labelBalanceWeight13.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelBalanceWeight13.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); - this.labelBalanceWeight13.InitVisible = true; - this.labelBalanceWeight13.LineSpacing = 0F; - this.labelBalanceWeight13.Location = new System.Drawing.Point(135, 412); - this.labelBalanceWeight13.Name = "labelBalanceWeight13"; - this.labelBalanceWeight13.Size = new System.Drawing.Size(70, 25); - this.labelBalanceWeight13.TabIndex = 456; - this.labelBalanceWeight13.Text = "LoadCell 13"; - this.labelBalanceWeight13.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelBalanceWeight13.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelBalanceWeight13.Wordwrap = false; - // - // smartLabel23 - // - this.smartLabel23.BackColor = System.Drawing.SystemColors.Info; - this.smartLabel23.BackPictureBox = null; - this.smartLabel23.BackPictureBox1 = null; - this.smartLabel23.BackPictureBox2 = null; - this.smartLabel23.BorderColor = System.Drawing.Color.Black; - this.smartLabel23.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.smartLabel23.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); - this.smartLabel23.InitVisible = true; - this.smartLabel23.LineSpacing = 0F; - this.smartLabel23.Location = new System.Drawing.Point(29, 505); - this.smartLabel23.Name = "smartLabel23"; - this.smartLabel23.Size = new System.Drawing.Size(100, 25); - this.smartLabel23.TabIndex = 460; - this.smartLabel23.Text = "SubBoard 16"; - this.smartLabel23.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.smartLabel23.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.smartLabel23.Wordwrap = false; - // - // smartLabel29 - // - this.smartLabel29.BackColor = System.Drawing.SystemColors.Info; - this.smartLabel29.BackPictureBox = null; - this.smartLabel29.BackPictureBox1 = null; - this.smartLabel29.BackPictureBox2 = null; - this.smartLabel29.BorderColor = System.Drawing.Color.Black; - this.smartLabel29.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.smartLabel29.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); - this.smartLabel29.InitVisible = true; - this.smartLabel29.LineSpacing = 0F; - this.smartLabel29.Location = new System.Drawing.Point(29, 443); - this.smartLabel29.Name = "smartLabel29"; - this.smartLabel29.Size = new System.Drawing.Size(100, 25); - this.smartLabel29.TabIndex = 461; - this.smartLabel29.Text = "SubBoard 14"; - this.smartLabel29.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.smartLabel29.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.smartLabel29.Wordwrap = false; - // - // labelBalanceWeight16 - // - this.labelBalanceWeight16.BackColor = System.Drawing.SystemColors.ControlLightLight; - this.labelBalanceWeight16.BackPictureBox = null; - this.labelBalanceWeight16.BackPictureBox1 = null; - this.labelBalanceWeight16.BackPictureBox2 = null; - this.labelBalanceWeight16.BorderColor = System.Drawing.Color.Black; - this.labelBalanceWeight16.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelBalanceWeight16.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); - this.labelBalanceWeight16.InitVisible = true; - this.labelBalanceWeight16.LineSpacing = 0F; - this.labelBalanceWeight16.Location = new System.Drawing.Point(135, 505); - this.labelBalanceWeight16.Name = "labelBalanceWeight16"; - this.labelBalanceWeight16.Size = new System.Drawing.Size(70, 25); - this.labelBalanceWeight16.TabIndex = 458; - this.labelBalanceWeight16.Text = "LoadCell 16"; - this.labelBalanceWeight16.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelBalanceWeight16.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelBalanceWeight16.Wordwrap = false; - // - // labelBalanceWeight14 - // - this.labelBalanceWeight14.BackColor = System.Drawing.SystemColors.ControlLightLight; - this.labelBalanceWeight14.BackPictureBox = null; - this.labelBalanceWeight14.BackPictureBox1 = null; - this.labelBalanceWeight14.BackPictureBox2 = null; - this.labelBalanceWeight14.BorderColor = System.Drawing.Color.Black; - this.labelBalanceWeight14.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelBalanceWeight14.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); - this.labelBalanceWeight14.InitVisible = true; - this.labelBalanceWeight14.LineSpacing = 0F; - this.labelBalanceWeight14.Location = new System.Drawing.Point(135, 443); - this.labelBalanceWeight14.Name = "labelBalanceWeight14"; - this.labelBalanceWeight14.Size = new System.Drawing.Size(70, 25); - this.labelBalanceWeight14.TabIndex = 459; - this.labelBalanceWeight14.Text = "LoadCell 14"; - this.labelBalanceWeight14.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelBalanceWeight14.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelBalanceWeight14.Wordwrap = false; - // - // smartLabel34 - // - this.smartLabel34.BackColor = System.Drawing.SystemColors.Info; - this.smartLabel34.BackPictureBox = null; - this.smartLabel34.BackPictureBox1 = null; - this.smartLabel34.BackPictureBox2 = null; - this.smartLabel34.BorderColor = System.Drawing.Color.Black; - this.smartLabel34.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.smartLabel34.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); - this.smartLabel34.InitVisible = true; - this.smartLabel34.LineSpacing = 0F; - this.smartLabel34.Location = new System.Drawing.Point(29, 474); - this.smartLabel34.Name = "smartLabel34"; - this.smartLabel34.Size = new System.Drawing.Size(100, 25); - this.smartLabel34.TabIndex = 467; - this.smartLabel34.Text = "SubBoard 15"; - this.smartLabel34.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.smartLabel34.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.smartLabel34.Wordwrap = false; - // - // smartLabel35 - // - this.smartLabel35.BackColor = System.Drawing.SystemColors.Info; - this.smartLabel35.BackPictureBox = null; - this.smartLabel35.BackPictureBox1 = null; - this.smartLabel35.BackPictureBox2 = null; - this.smartLabel35.BorderColor = System.Drawing.Color.Black; - this.smartLabel35.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.smartLabel35.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); - this.smartLabel35.InitVisible = true; - this.smartLabel35.LineSpacing = 0F; - this.smartLabel35.Location = new System.Drawing.Point(29, 412); - this.smartLabel35.Name = "smartLabel35"; - this.smartLabel35.Size = new System.Drawing.Size(100, 25); - this.smartLabel35.TabIndex = 466; - this.smartLabel35.Text = "SubBoard 13"; - this.smartLabel35.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.smartLabel35.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.smartLabel35.Wordwrap = false; - // - // labelDigit16 - // - this.labelDigit16.BackColor = System.Drawing.SystemColors.ControlLightLight; - this.labelDigit16.BackPictureBox = null; - this.labelDigit16.BackPictureBox1 = null; - this.labelDigit16.BackPictureBox2 = null; - this.labelDigit16.BorderColor = System.Drawing.Color.Black; - this.labelDigit16.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelDigit16.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); - this.labelDigit16.InitVisible = true; - this.labelDigit16.LineSpacing = 0F; - this.labelDigit16.Location = new System.Drawing.Point(287, 505); - this.labelDigit16.Name = "labelDigit16"; - this.labelDigit16.Size = new System.Drawing.Size(70, 25); - this.labelDigit16.TabIndex = 470; - this.labelDigit16.Text = "LoadCell 16"; - this.labelDigit16.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelDigit16.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelDigit16.Wordwrap = false; - // - // labelDigit14 - // - this.labelDigit14.BackColor = System.Drawing.SystemColors.ControlLightLight; - this.labelDigit14.BackPictureBox = null; - this.labelDigit14.BackPictureBox1 = null; - this.labelDigit14.BackPictureBox2 = null; - this.labelDigit14.BorderColor = System.Drawing.Color.Black; - this.labelDigit14.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelDigit14.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); - this.labelDigit14.InitVisible = true; - this.labelDigit14.LineSpacing = 0F; - this.labelDigit14.Location = new System.Drawing.Point(287, 443); - this.labelDigit14.Name = "labelDigit14"; - this.labelDigit14.Size = new System.Drawing.Size(70, 25); - this.labelDigit14.TabIndex = 471; - this.labelDigit14.Text = "LoadCell 14"; - this.labelDigit14.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelDigit14.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelDigit14.Wordwrap = false; - // - // labelMaxWeight16 - // - this.labelMaxWeight16.BackColor = System.Drawing.SystemColors.ControlLightLight; - this.labelMaxWeight16.BackPictureBox = null; - this.labelMaxWeight16.BackPictureBox1 = null; - this.labelMaxWeight16.BackPictureBox2 = null; - this.labelMaxWeight16.BorderColor = System.Drawing.Color.Black; - this.labelMaxWeight16.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelMaxWeight16.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); - this.labelMaxWeight16.InitVisible = true; - this.labelMaxWeight16.LineSpacing = 0F; - this.labelMaxWeight16.Location = new System.Drawing.Point(211, 505); - this.labelMaxWeight16.Name = "labelMaxWeight16"; - this.labelMaxWeight16.Size = new System.Drawing.Size(70, 25); - this.labelMaxWeight16.TabIndex = 468; - this.labelMaxWeight16.Text = "LoadCell 16"; - this.labelMaxWeight16.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelMaxWeight16.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelMaxWeight16.Wordwrap = false; - // - // labelMaxWeight14 - // - this.labelMaxWeight14.BackColor = System.Drawing.SystemColors.ControlLightLight; - this.labelMaxWeight14.BackPictureBox = null; - this.labelMaxWeight14.BackPictureBox1 = null; - this.labelMaxWeight14.BackPictureBox2 = null; - this.labelMaxWeight14.BorderColor = System.Drawing.Color.Black; - this.labelMaxWeight14.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelMaxWeight14.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); - this.labelMaxWeight14.InitVisible = true; - this.labelMaxWeight14.LineSpacing = 0F; - this.labelMaxWeight14.Location = new System.Drawing.Point(211, 443); - this.labelMaxWeight14.Name = "labelMaxWeight14"; - this.labelMaxWeight14.Size = new System.Drawing.Size(70, 25); - this.labelMaxWeight14.TabIndex = 469; - this.labelMaxWeight14.Text = "LoadCell 14"; - this.labelMaxWeight14.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelMaxWeight14.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelMaxWeight14.Wordwrap = false; - // - // labelDigit15 - // - this.labelDigit15.BackColor = System.Drawing.SystemColors.ControlLight; - this.labelDigit15.BackPictureBox = null; - this.labelDigit15.BackPictureBox1 = null; - this.labelDigit15.BackPictureBox2 = null; - this.labelDigit15.BorderColor = System.Drawing.Color.Black; - this.labelDigit15.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelDigit15.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); - this.labelDigit15.InitVisible = true; - this.labelDigit15.LineSpacing = 0F; - this.labelDigit15.Location = new System.Drawing.Point(287, 474); - this.labelDigit15.Name = "labelDigit15"; - this.labelDigit15.Size = new System.Drawing.Size(70, 25); - this.labelDigit15.TabIndex = 464; - this.labelDigit15.Text = "LoadCell 15"; - this.labelDigit15.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelDigit15.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelDigit15.Wordwrap = false; - // - // labelMaxWeight15 - // - this.labelMaxWeight15.BackColor = System.Drawing.SystemColors.ControlLight; - this.labelMaxWeight15.BackPictureBox = null; - this.labelMaxWeight15.BackPictureBox1 = null; - this.labelMaxWeight15.BackPictureBox2 = null; - this.labelMaxWeight15.BorderColor = System.Drawing.Color.Black; - this.labelMaxWeight15.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelMaxWeight15.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); - this.labelMaxWeight15.InitVisible = true; - this.labelMaxWeight15.LineSpacing = 0F; - this.labelMaxWeight15.Location = new System.Drawing.Point(211, 474); - this.labelMaxWeight15.Name = "labelMaxWeight15"; - this.labelMaxWeight15.Size = new System.Drawing.Size(70, 25); - this.labelMaxWeight15.TabIndex = 462; - this.labelMaxWeight15.Text = "LoadCell 15"; - this.labelMaxWeight15.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelMaxWeight15.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelMaxWeight15.Wordwrap = false; - // - // labelDigit13 - // - this.labelDigit13.BackColor = System.Drawing.SystemColors.ControlLight; - this.labelDigit13.BackPictureBox = null; - this.labelDigit13.BackPictureBox1 = null; - this.labelDigit13.BackPictureBox2 = null; - this.labelDigit13.BorderColor = System.Drawing.Color.Black; - this.labelDigit13.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelDigit13.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); - this.labelDigit13.InitVisible = true; - this.labelDigit13.LineSpacing = 0F; - this.labelDigit13.Location = new System.Drawing.Point(287, 412); - this.labelDigit13.Name = "labelDigit13"; - this.labelDigit13.Size = new System.Drawing.Size(70, 25); - this.labelDigit13.TabIndex = 465; - this.labelDigit13.Text = "LoadCell 13"; - this.labelDigit13.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelDigit13.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelDigit13.Wordwrap = false; - // - // labelMaxWeight13 - // - this.labelMaxWeight13.BackColor = System.Drawing.SystemColors.ControlLight; - this.labelMaxWeight13.BackPictureBox = null; - this.labelMaxWeight13.BackPictureBox1 = null; - this.labelMaxWeight13.BackPictureBox2 = null; - this.labelMaxWeight13.BorderColor = System.Drawing.Color.Black; - this.labelMaxWeight13.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelMaxWeight13.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); - this.labelMaxWeight13.InitVisible = true; - this.labelMaxWeight13.LineSpacing = 0F; - this.labelMaxWeight13.Location = new System.Drawing.Point(211, 412); - this.labelMaxWeight13.Name = "labelMaxWeight13"; - this.labelMaxWeight13.Size = new System.Drawing.Size(70, 25); - this.labelMaxWeight13.TabIndex = 463; - this.labelMaxWeight13.Text = "LoadCell 13"; - this.labelMaxWeight13.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelMaxWeight13.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelMaxWeight13.Wordwrap = false; - // - // labelFilter15 - // - this.labelFilter15.BackColor = System.Drawing.SystemColors.ControlLight; - this.labelFilter15.BackPictureBox = null; - this.labelFilter15.BackPictureBox1 = null; - this.labelFilter15.BackPictureBox2 = null; - this.labelFilter15.BorderColor = System.Drawing.Color.Black; - this.labelFilter15.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelFilter15.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); - this.labelFilter15.InitVisible = true; - this.labelFilter15.LineSpacing = 0F; - this.labelFilter15.Location = new System.Drawing.Point(135, 474); - this.labelFilter15.Name = "labelFilter15"; - this.labelFilter15.Size = new System.Drawing.Size(70, 25); - this.labelFilter15.TabIndex = 469; - this.labelFilter15.Text = "LoadCell 15"; - this.labelFilter15.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelFilter15.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelFilter15.Wordwrap = false; - // - // labelFilter13 - // - this.labelFilter13.BackColor = System.Drawing.SystemColors.ControlLight; - this.labelFilter13.BackPictureBox = null; - this.labelFilter13.BackPictureBox1 = null; - this.labelFilter13.BackPictureBox2 = null; - this.labelFilter13.BorderColor = System.Drawing.Color.Black; - this.labelFilter13.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelFilter13.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); - this.labelFilter13.InitVisible = true; - this.labelFilter13.LineSpacing = 0F; - this.labelFilter13.Location = new System.Drawing.Point(135, 412); - this.labelFilter13.Name = "labelFilter13"; - this.labelFilter13.Size = new System.Drawing.Size(70, 25); - this.labelFilter13.TabIndex = 468; - this.labelFilter13.Text = "LoadCell 13"; - this.labelFilter13.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelFilter13.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelFilter13.Wordwrap = false; - // - // smartLabel30 - // - this.smartLabel30.BackColor = System.Drawing.SystemColors.Info; - this.smartLabel30.BackPictureBox = null; - this.smartLabel30.BackPictureBox1 = null; - this.smartLabel30.BackPictureBox2 = null; - this.smartLabel30.BorderColor = System.Drawing.Color.Black; - this.smartLabel30.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.smartLabel30.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); - this.smartLabel30.InitVisible = true; - this.smartLabel30.LineSpacing = 0F; - this.smartLabel30.Location = new System.Drawing.Point(29, 505); - this.smartLabel30.Name = "smartLabel30"; - this.smartLabel30.Size = new System.Drawing.Size(100, 25); - this.smartLabel30.TabIndex = 472; - this.smartLabel30.Text = "SubBoard 16"; - this.smartLabel30.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.smartLabel30.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.smartLabel30.Wordwrap = false; - // - // smartLabel31 - // - this.smartLabel31.BackColor = System.Drawing.SystemColors.Info; - this.smartLabel31.BackPictureBox = null; - this.smartLabel31.BackPictureBox1 = null; - this.smartLabel31.BackPictureBox2 = null; - this.smartLabel31.BorderColor = System.Drawing.Color.Black; - this.smartLabel31.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.smartLabel31.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); - this.smartLabel31.InitVisible = true; - this.smartLabel31.LineSpacing = 0F; - this.smartLabel31.Location = new System.Drawing.Point(29, 443); - this.smartLabel31.Name = "smartLabel31"; - this.smartLabel31.Size = new System.Drawing.Size(100, 25); - this.smartLabel31.TabIndex = 473; - this.smartLabel31.Text = "SubBoard 14"; - this.smartLabel31.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.smartLabel31.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.smartLabel31.Wordwrap = false; - // - // labelFilter16 - // - this.labelFilter16.BackColor = System.Drawing.SystemColors.ControlLightLight; - this.labelFilter16.BackPictureBox = null; - this.labelFilter16.BackPictureBox1 = null; - this.labelFilter16.BackPictureBox2 = null; - this.labelFilter16.BorderColor = System.Drawing.Color.Black; - this.labelFilter16.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelFilter16.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); - this.labelFilter16.InitVisible = true; - this.labelFilter16.LineSpacing = 0F; - this.labelFilter16.Location = new System.Drawing.Point(135, 505); - this.labelFilter16.Name = "labelFilter16"; - this.labelFilter16.Size = new System.Drawing.Size(70, 25); - this.labelFilter16.TabIndex = 470; - this.labelFilter16.Text = "LoadCell 16"; - this.labelFilter16.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelFilter16.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelFilter16.Wordwrap = false; - // - // labelFilter14 - // - this.labelFilter14.BackColor = System.Drawing.SystemColors.ControlLightLight; - this.labelFilter14.BackPictureBox = null; - this.labelFilter14.BackPictureBox1 = null; - this.labelFilter14.BackPictureBox2 = null; - this.labelFilter14.BorderColor = System.Drawing.Color.Black; - this.labelFilter14.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelFilter14.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); - this.labelFilter14.InitVisible = true; - this.labelFilter14.LineSpacing = 0F; - this.labelFilter14.Location = new System.Drawing.Point(135, 443); - this.labelFilter14.Name = "labelFilter14"; - this.labelFilter14.Size = new System.Drawing.Size(70, 25); - this.labelFilter14.TabIndex = 471; - this.labelFilter14.Text = "LoadCell 14"; - this.labelFilter14.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.labelFilter14.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.labelFilter14.Wordwrap = false; - // - // smartLabel40 - // - this.smartLabel40.BackColor = System.Drawing.SystemColors.Info; - this.smartLabel40.BackPictureBox = null; - this.smartLabel40.BackPictureBox1 = null; - this.smartLabel40.BackPictureBox2 = null; - this.smartLabel40.BorderColor = System.Drawing.Color.Black; - this.smartLabel40.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.smartLabel40.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); - this.smartLabel40.InitVisible = true; - this.smartLabel40.LineSpacing = 0F; - this.smartLabel40.Location = new System.Drawing.Point(29, 474); - this.smartLabel40.Name = "smartLabel40"; - this.smartLabel40.Size = new System.Drawing.Size(100, 25); - this.smartLabel40.TabIndex = 475; - this.smartLabel40.Text = "SubBoard 15"; - this.smartLabel40.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.smartLabel40.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.smartLabel40.Wordwrap = false; - // - // smartLabel41 - // - this.smartLabel41.BackColor = System.Drawing.SystemColors.Info; - this.smartLabel41.BackPictureBox = null; - this.smartLabel41.BackPictureBox1 = null; - this.smartLabel41.BackPictureBox2 = null; - this.smartLabel41.BorderColor = System.Drawing.Color.Black; - this.smartLabel41.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.smartLabel41.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); - this.smartLabel41.InitVisible = true; - this.smartLabel41.LineSpacing = 0F; - this.smartLabel41.Location = new System.Drawing.Point(29, 412); - this.smartLabel41.Name = "smartLabel41"; - this.smartLabel41.Size = new System.Drawing.Size(100, 25); - this.smartLabel41.TabIndex = 474; - this.smartLabel41.Text = "SubBoard 13"; - this.smartLabel41.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle; - this.smartLabel41.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; - this.smartLabel41.Wordwrap = false; - // // FormConfiguration // this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); diff --git a/INT63DC_2C/Forms/FormConfiguration.cs b/INT63DC_2C/Forms/FormConfiguration.cs index 7c7dd01..52cc14a 100644 --- a/INT63DC_2C/Forms/FormConfiguration.cs +++ b/INT63DC_2C/Forms/FormConfiguration.cs @@ -57,250 +57,316 @@ namespace INT63DC_2C.Forms ImageDll images = new ImageDll(); Font font = new Font("New Gulim", 8F, FontStyle.Regular); - if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) + switch (this.ParentForm.SystemConfig.Language) { + case DataStore.LanguageID.Korean: + break; + case DataStore.LanguageID.English: + #region English + this.labelTitle.Text = "Configuration"; - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.labelTitle.Text = "Configuration"; + this.groupBoxAutoZero.Text = "Auto zero"; + this.labelStaticTime.Text = "Time"; + this.labelStaticRange.Text = "Range"; + this.labelStaticVariable.Text = "Variable"; + this.labelStaticMode.Text = "Mode"; - this.groupBoxAutoZero.Text = "Auto zero"; - this.labelStaticTime.Text = "Time"; - this.labelStaticRange.Text = "Range"; - this.labelStaticVariable.Text = "Variable"; - this.labelStaticMode.Text = "Mode"; + this.groupBoxOption.Text = "Option"; + this.labelStaticEmptyWeight.Text = "Empty weight Set"; + this.labelStaticChattering.Text = "Chattering"; + this.labelStaticDecimalPoint.Text = "Decimal point"; + this.labelStaticBuzzerOnTime.Text = "Buzzer ON time"; + this.labelStaticRelayOnTime.Text = "Relay ON time"; + this.labelStaticBypass.Text = "Bypass"; + this.labelStaticEXT1DelayTime.Text = "EXT DelayTime"; + this.labelStaticEXT1RunTime.Text = "EXT RunTime"; - this.groupBoxOption.Text = "Option"; - this.labelStaticEmptyWeight.Text = "Empty weight Set"; - this.labelStaticChattering.Text = "Chattering"; - this.labelStaticDecimalPoint.Text = "Decimal point"; - this.labelStaticBuzzerOnTime.Text = "Buzzer ON time"; - this.labelStaticRelayOnTime.Text = "Relay ON time"; - this.labelStaticBypass.Text = "Bypass"; - this.labelStaticEXT1DelayTime.Text = "EXT DelayTime"; - this.labelStaticEXT1RunTime.Text = "EXT RunTime"; + this.groupBoxComm.Text = "Communication"; + this.labelStaticCommunicationSpeed.Text = "Speed"; + this.labelStaticCommunicationMode.Text = "Mode"; - this.groupBoxComm.Text = "Communication"; - this.labelStaticCommunicationSpeed.Text = "Speed"; - this.labelStaticCommunicationMode.Text = "Mode"; + this.buttonScreen.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engScreenDisable)); + this.buttonScreen.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engScreenDown)); + this.buttonScreen.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engScreenUp)); + this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDisable)); + this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDown)); + this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackUp)); + #endregion + break; + case DataStore.LanguageID.Chinese: + #region Chinese + this.labelTitle.Text = "选项"; - this.buttonScreen.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engScreenDisable)); - this.buttonScreen.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engScreenDown)); - this.buttonScreen.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engScreenUp)); - this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDisable)); - this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDown)); - this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackUp)); - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.labelTitle.Text = "选项"; + this.groupBoxAutoZero.Text = "自动零点跟踪"; + this.labelStaticTime.Text = "时间"; + this.labelStaticRange.Text = "范围"; + this.labelStaticVariable.Text = "变化"; + this.labelStaticMode.Text = "模式"; - this.groupBoxAutoZero.Text = "自动零点跟踪"; - this.labelStaticTime.Text = "时间"; - this.labelStaticRange.Text = "范围"; - this.labelStaticVariable.Text = "变化"; - this.labelStaticMode.Text = "模式"; + this.groupBoxOption.Text = "等等"; + this.labelStaticEmptyWeight.Text = "空重设置"; + this.labelStaticChattering.Text = "颤振"; + this.labelStaticBuzzerOnTime.Text = "蜂鸣器开启时间"; + this.labelStaticRelayOnTime.Text = "继电器接通时间"; + this.labelStaticDecimalPoint.Text = "小数点"; + this.labelStaticBypass.Text = "旁路"; + this.labelStaticEXT1DelayTime.Text = "外部输出延迟时间"; + this.labelStaticEXT1RunTime.Text = "外部输出运转时间"; - this.groupBoxOption.Text = "等等"; - this.labelStaticEmptyWeight.Text = "空重设置"; - this.labelStaticChattering.Text = "颤振"; - this.labelStaticBuzzerOnTime.Text = "蜂鸣器开启时间"; - this.labelStaticRelayOnTime.Text = "继电器接通时间"; - this.labelStaticDecimalPoint.Text = "小数点"; - this.labelStaticBypass.Text = "旁路"; - this.labelStaticEXT1DelayTime.Text = "外部输出延迟时间"; - this.labelStaticEXT1RunTime.Text = "外部输出运转时间"; + this.groupBoxComm.Text = "通信"; + this.labelStaticCommunicationSpeed.Text = "波特率"; + this.labelStaticCommunicationMode.Text = "模式"; - this.groupBoxComm.Text = "通信"; - this.labelStaticCommunicationSpeed.Text = "波特率"; - this.labelStaticCommunicationMode.Text = "模式"; + this.groupBoxBypass.Text = "旁路"; + this.buttonSend.Text = "发送"; - this.groupBoxBypass.Text = "旁路"; - this.buttonSend.Text = "发送"; + this.buttonSave3.Text = this.buttonSaveBypass.Text = "保存"; - this.buttonSave3.Text = this.buttonSaveBypass.Text = "保存"; + this.labelTitleLine1.Text = "列1"; + this.labelTitleLine2.Text = "列2"; + this.labelTitleLine3.Text = "列3"; + this.labelTitleLine4.Text = "列4"; + this.labelTitleLine5.Text = "列5"; + this.labelTitleLine6.Text = "列6"; + this.labelTitleLine7.Text = "列7"; + this.labelTitleLine8.Text = "列8"; + this.labelTitleLine9.Text = "列9"; + this.labelTitleLine10.Text = "列10"; + this.labelTitleLine11.Text = "列11"; + this.labelTitleLine12.Text = "列12"; + this.labelTitleLine13.Text = "列13"; + this.labelTitleLine14.Text = "列14"; + this.labelTitleLine15.Text = "列15"; + this.labelTitleLine16.Text = "列16"; - this.labelTitleLine1.Text = "列1"; - this.labelTitleLine2.Text = "列2"; - this.labelTitleLine3.Text = "列3"; - this.labelTitleLine4.Text = "列4"; - this.labelTitleLine5.Text = "列5"; - this.labelTitleLine6.Text = "列6"; - this.labelTitleLine7.Text = "列7"; - this.labelTitleLine8.Text = "列8"; - this.labelTitleLine9.Text = "列9"; - this.labelTitleLine10.Text = "列10"; - this.labelTitleLine11.Text = "列11"; - this.labelTitleLine12.Text = "列12"; - this.labelTitleLine13.Text = "列13"; - this.labelTitleLine14.Text = "列14"; - this.labelTitleLine15.Text = "列15"; - this.labelTitleLine16.Text = "列16"; + this.buttonBypassLane1.DownImage = this.buttonBypassLane2.DownImage = this.buttonBypassLane3.DownImage = + this.buttonBypassLane4.DownImage = this.buttonBypassLane5.DownImage = this.buttonBypassLane6.DownImage = + this.buttonBypassLane7.DownImage = this.buttonBypassLane8.DownImage = this.buttonBypassLane9.DownImage = + this.buttonBypassLane10.DownImage = this.buttonBypassLane11.DownImage = this.buttonBypassLane12.DownImage = + this.buttonBypassMode.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnEnable)); - this.buttonBypassLane1.DownImage = this.buttonBypassLane2.DownImage = this.buttonBypassLane3.DownImage = - this.buttonBypassLane4.DownImage = this.buttonBypassLane5.DownImage = this.buttonBypassLane6.DownImage = - this.buttonBypassLane7.DownImage = this.buttonBypassLane8.DownImage = this.buttonBypassLane9.DownImage = - this.buttonBypassLane10.DownImage = this.buttonBypassLane11.DownImage = this.buttonBypassLane12.DownImage = - this.buttonBypassMode.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnEnable)); + this.buttonBypassLane1.UpImage = this.buttonBypassLane2.UpImage = this.buttonBypassLane3.UpImage = + this.buttonBypassLane4.UpImage = this.buttonBypassLane5.UpImage = this.buttonBypassLane6.UpImage = + this.buttonBypassLane7.UpImage = this.buttonBypassLane8.UpImage = this.buttonBypassLane9.UpImage = + this.buttonBypassLane10.UpImage = this.buttonBypassLane11.UpImage = this.buttonBypassLane12.UpImage = + this.buttonBypassMode.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnDisable)); - this.buttonBypassLane1.UpImage = this.buttonBypassLane2.UpImage = this.buttonBypassLane3.UpImage = - this.buttonBypassLane4.UpImage = this.buttonBypassLane5.UpImage = this.buttonBypassLane6.UpImage = - this.buttonBypassLane7.UpImage = this.buttonBypassLane8.UpImage = this.buttonBypassLane9.UpImage = - this.buttonBypassLane10.UpImage = this.buttonBypassLane11.UpImage = this.buttonBypassLane12.UpImage = - this.buttonBypassMode.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnDisable)); + this.buttonScreen.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnScreenDisable)); + this.buttonScreen.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnScreenDown)); + this.buttonScreen.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnScreenUp)); + this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackDisable)); + this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackDown)); + this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackUp)); + #endregion + break; + case DataStore.LanguageID.Czech: + #region Czech + this.labelTitle.Text = "Předvolby"; - this.buttonScreen.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnScreenDisable)); - this.buttonScreen.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnScreenDown)); - this.buttonScreen.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnScreenUp)); - this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackDisable)); - this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackDown)); - this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackUp)); - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.labelTitle.Text = "Předvolby"; + this.groupBoxAutoZero.Text = "Automatické nulování"; + this.labelStaticTime.Text = "Čas"; + this.labelStaticRange.Text = "Rozsah"; + this.labelStaticVariable.Text = "Rozdíl"; + this.labelStaticMode.Text = "Režim"; - this.groupBoxAutoZero.Text = "Automatické nulování"; - this.labelStaticTime.Text = "Čas"; - this.labelStaticRange.Text = "Rozsah"; - this.labelStaticVariable.Text = "Rozdíl"; - this.labelStaticMode.Text = "Režim"; + this.groupBoxOption.Text = "Možnosti"; + this.labelStaticEmptyWeight.Text = "Nastavení prázdné hmotnosti"; + this.labelStaticChattering.Text = "Uklidnění tenzometru"; + this.labelStaticDecimalPoint.Text = "Počet desettiných míst"; + this.labelStaticBuzzerOnTime.Text = "Zvukový signál - čas"; + this.labelStaticRelayOnTime.Text = "Relé - čas"; + this.labelStaticBypass.Text = "Vše"; + this.labelStaticEXT1DelayTime.Text = "zpoždění externího výstupu"; + this.labelStaticEXT1RunTime.Text = "provozu externího výstupu"; - this.groupBoxOption.Text = "Možnosti"; - this.labelStaticEmptyWeight.Text = "Nastavení prázdné hmotnosti"; - this.labelStaticChattering.Text = "Uklidnění tenzometru"; - this.labelStaticDecimalPoint.Text = "Počet desettiných míst"; - this.labelStaticBuzzerOnTime.Text = "Zvukový signál - čas"; - this.labelStaticRelayOnTime.Text = "Relé - čas"; - this.labelStaticBypass.Text = "Vše"; - this.labelStaticEXT1DelayTime.Text = "zpoždění externího výstupu"; - this.labelStaticEXT1RunTime.Text = "provozu externího výstupu"; + this.groupBoxComm.Text = "Nastavení komunikace"; + this.labelStaticCommunicationMode.Text = "Režim"; - this.groupBoxComm.Text = "Nastavení komunikace"; - this.labelStaticCommunicationMode.Text = "Režim"; + this.labelTitleLine1.Text = "Řada 1"; + this.labelTitleLine2.Text = "Řada 2"; + this.labelTitleLine3.Text = "Řada 3"; + this.labelTitleLine4.Text = "Řada 4"; + this.labelTitleLine5.Text = "Řada 5"; + this.labelTitleLine6.Text = "Řada 6"; + this.labelTitleLine7.Text = "Řada 7"; + this.labelTitleLine8.Text = "Řada 8"; + this.labelTitleLine9.Text = "Řada 9"; + this.labelTitleLine10.Text = "Řada 10"; + this.labelTitleLine11.Text = "Řada 11"; + this.labelTitleLine12.Text = "Řada 12"; + this.labelTitleLine13.Text = "Řada 13"; + this.labelTitleLine14.Text = "Řada 14"; + this.labelTitleLine15.Text = "Řada 15"; + this.labelTitleLine16.Text = "Řada 16"; - this.labelTitleLine1.Text = "Řada 1"; - this.labelTitleLine2.Text = "Řada 2"; - this.labelTitleLine3.Text = "Řada 3"; - this.labelTitleLine4.Text = "Řada 4"; - this.labelTitleLine5.Text = "Řada 5"; - this.labelTitleLine6.Text = "Řada 6"; - this.labelTitleLine7.Text = "Řada 7"; - this.labelTitleLine8.Text = "Řada 8"; - this.labelTitleLine9.Text = "Řada 9"; - this.labelTitleLine10.Text = "Řada 10"; - this.labelTitleLine11.Text = "Řada 11"; - this.labelTitleLine12.Text = "Řada 12"; - this.labelTitleLine13.Text = "Řada 13"; - this.labelTitleLine14.Text = "Řada 14"; - this.labelTitleLine15.Text = "Řada 15"; - this.labelTitleLine16.Text = "Řada 16"; + this.labelStaticBypass.Text = "Bypass vše"; - this.labelStaticBypass.Text = "Bypass vše"; + this.buttonSave3.Text = this.buttonSaveBypass.Text = "Uložit"; - this.buttonSave3.Text = this.buttonSaveBypass.Text = "Uložit"; + this.buttonScreen.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeScreenDisable)); + this.buttonScreen.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeScreenDown)); + this.buttonScreen.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeScreenUp)); + this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackDisable)); + this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackDown)); + this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackUp)); - this.buttonScreen.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeScreenDisable)); - this.buttonScreen.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeScreenDown)); - this.buttonScreen.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeScreenUp)); - this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackDisable)); - this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackDown)); - this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackUp)); + this.buttonBypassLane1.DownImage = this.buttonBypassLane2.DownImage = this.buttonBypassLane3.DownImage = + this.buttonBypassLane4.DownImage = this.buttonBypassLane5.DownImage = this.buttonBypassLane6.DownImage = + this.buttonBypassLane7.DownImage = this.buttonBypassLane8.DownImage = this.buttonBypassLane9.DownImage = + this.buttonBypassLane10.DownImage = this.buttonBypassLane11.DownImage = this.buttonBypassLane12.DownImage = + this.buttonBypassMode.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeEnable)); - this.buttonBypassLane1.DownImage = this.buttonBypassLane2.DownImage = this.buttonBypassLane3.DownImage = - this.buttonBypassLane4.DownImage = this.buttonBypassLane5.DownImage = this.buttonBypassLane6.DownImage = - this.buttonBypassLane7.DownImage = this.buttonBypassLane8.DownImage = this.buttonBypassLane9.DownImage = - this.buttonBypassLane10.DownImage = this.buttonBypassLane11.DownImage = this.buttonBypassLane12.DownImage = - this.buttonBypassMode.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeEnable)); + this.buttonBypassLane1.UpImage = this.buttonBypassLane2.UpImage = this.buttonBypassLane3.UpImage = + this.buttonBypassLane4.UpImage = this.buttonBypassLane5.UpImage = this.buttonBypassLane6.UpImage = + this.buttonBypassLane7.UpImage = this.buttonBypassLane8.UpImage = this.buttonBypassLane9.UpImage = + this.buttonBypassLane10.UpImage = this.buttonBypassLane11.UpImage = this.buttonBypassLane12.UpImage = + this.buttonBypassMode.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeDisable)); + #endregion + break; + case DataStore.LanguageID.German: + #region German + this.labelTitle.Text = "Konfiguration"; - this.buttonBypassLane1.UpImage = this.buttonBypassLane2.UpImage = this.buttonBypassLane3.UpImage = - this.buttonBypassLane4.UpImage = this.buttonBypassLane5.UpImage = this.buttonBypassLane6.UpImage = - this.buttonBypassLane7.UpImage = this.buttonBypassLane8.UpImage = this.buttonBypassLane9.UpImage = - this.buttonBypassLane10.UpImage = this.buttonBypassLane11.UpImage = this.buttonBypassLane12.UpImage = - this.buttonBypassMode.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeDisable)); - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.labelTitle.Text = "Konfiguration"; + this.groupBoxAutoZero.Text = "automatische Nullung"; + this.labelStaticTime.Text = "Zeit"; + this.labelStaticRange.Text = "Bereich"; + this.labelStaticVariable.Text = "Unterschied"; + this.labelStaticMode.Text = "Modus"; - this.groupBoxAutoZero.Text = "automatische Nullung"; - this.labelStaticTime.Text = "Zeit"; - this.labelStaticRange.Text = "Bereich"; - this.labelStaticVariable.Text = "Unterschied"; - this.labelStaticMode.Text = "Modus"; + this.groupBoxOption.Text = "Möglichkeit"; + this.labelStaticEmptyWeight.Text = "Leergewichtseinstellung"; + this.labelStaticChattering.Font = font; + this.labelStaticChattering.Text = "Beruhigung des Dehnungsmessers"; + this.labelStaticDecimalPoint.Text = "Dezimalpunkt"; + this.labelStaticBuzzerOnTime.Text = "Summer-Einschaltzeit"; + this.labelStaticRelayOnTime.Text = "Relais-Einschaltzeit"; + this.labelStaticBypass.Text = "Bypass-Modus"; + this.labelStaticEXT1DelayTime.Font = font; + this.labelStaticEXT1DelayTime.Text = "Externe Ausgangsverzögerungszeit"; + this.labelStaticEXT1RunTime.Font = font; + this.labelStaticEXT1RunTime.Text = "Betriebszeit der externen Ausgabe"; - this.groupBoxOption.Text = "Möglichkeit"; - this.labelStaticEmptyWeight.Text = "Leergewichtseinstellung"; - this.labelStaticChattering.Font = font; - this.labelStaticChattering.Text = "Beruhigung des Dehnungsmessers"; - this.labelStaticDecimalPoint.Text = "Dezimalpunkt"; - this.labelStaticBuzzerOnTime.Text = "Summer-Einschaltzeit"; - this.labelStaticRelayOnTime.Text = "Relais-Einschaltzeit"; - this.labelStaticBypass.Text = "Bypass-Modus"; - this.labelStaticEXT1DelayTime.Font = font; - this.labelStaticEXT1DelayTime.Text = "Externe Ausgangsverzögerungszeit"; - this.labelStaticEXT1RunTime.Font = font; - this.labelStaticEXT1RunTime.Text = "Betriebszeit der externen Ausgabe"; + this.groupBoxComm.Text = "Kommunikationseinstellung"; + this.labelStaticCommunicationSpeed.Text = "Baudrate"; + this.labelStaticCommunicationMode.Text = "Modus"; - this.groupBoxComm.Text = "Kommunikationseinstellung"; - this.labelStaticCommunicationSpeed.Text = "Baudrate"; - this.labelStaticCommunicationMode.Text = "Modus"; + this.labelTitleLine1.Text = "Reihe 1"; + this.labelTitleLine2.Text = "Reihe 2"; + this.labelTitleLine3.Text = "Reihe 3"; + this.labelTitleLine4.Text = "Reihe 4"; + this.labelTitleLine5.Text = "Reihe 5"; + this.labelTitleLine6.Text = "Reihe 6"; + this.labelTitleLine7.Text = "Reihe 7"; + this.labelTitleLine8.Text = "Reihe 8"; + this.labelTitleLine9.Text = "Reihe 9"; + this.labelTitleLine10.Text = "Reihe 10"; + this.labelTitleLine11.Text = "Reihe 11"; + this.labelTitleLine12.Text = "Reihe 12"; + this.labelTitleLine13.Text = "Reihe 13"; + this.labelTitleLine14.Text = "Reihe 14"; + this.labelTitleLine15.Text = "Reihe 15"; + this.labelTitleLine16.Text = "Reihe 16"; - this.labelTitleLine1.Text = "Reihe 1"; - this.labelTitleLine2.Text = "Reihe 2"; - this.labelTitleLine3.Text = "Reihe 3"; - this.labelTitleLine4.Text = "Reihe 4"; - this.labelTitleLine5.Text = "Reihe 5"; - this.labelTitleLine6.Text = "Reihe 6"; - this.labelTitleLine7.Text = "Reihe 7"; - this.labelTitleLine8.Text = "Reihe 8"; - this.labelTitleLine9.Text = "Reihe 9"; - this.labelTitleLine10.Text = "Reihe 10"; - this.labelTitleLine11.Text = "Reihe 11"; - this.labelTitleLine12.Text = "Reihe 12"; - this.labelTitleLine13.Text = "Reihe 13"; - this.labelTitleLine14.Text = "Reihe 14"; - this.labelTitleLine15.Text = "Reihe 15"; - this.labelTitleLine16.Text = "Reihe 16"; + this.labelStaticBypass.Text = "Bypass Alles"; + this.buttonSend.Text = "Senden"; + this.tabPage1.Text = "Automatische Nullung"; + this.tabPage2.Text = "Kalibrierung"; + this.tabPage3.Text = "Tascheneinstellung"; + this.buttonZeroRange.Text = "Bereich Z"; + this.buttonZeroTime.Text = "Zeit Z"; + this.buttonZeroVariate.Text = "Unterschied Z"; + this.buttonBalanceWeight.Text = "Waage G."; + this.buttonMaxWeight.Text = "Maximalgewicht"; + this.buttonDigit.Text = "Ziffer"; - this.labelStaticBypass.Text = "Bypass Alles"; - this.buttonSend.Text = "Senden"; - this.tabPage1.Text = "Automatische Nullung"; - this.tabPage2.Text = "Kalibrierung"; - this.tabPage3.Text = "Tascheneinstellung"; - this.buttonZeroRange.Text = "Bereich Z"; - this.buttonZeroTime.Text = "Zeit Z"; - this.buttonZeroVariate.Text = "Unterschied Z"; - this.buttonBalanceWeight.Text = "Waage G."; - this.buttonMaxWeight.Text = "Maximalgewicht"; - this.buttonDigit.Text = "Ziffer"; + this.buttonSave3.Text = this.buttonSaveBypass.Text = "Speichern"; + this.buttonScreen.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerScreenDisable)); + this.buttonScreen.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerScreenDown)); + this.buttonScreen.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerScreenUp)); + this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackDisable)); + this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackDown)); + this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackUp)); - this.buttonSave3.Text = this.buttonSaveBypass.Text = "Speichern"; + this.buttonBypassLane1.DownImage = this.buttonBypassLane2.DownImage = this.buttonBypassLane3.DownImage = + this.buttonBypassLane4.DownImage = this.buttonBypassLane5.DownImage = this.buttonBypassLane6.DownImage = + this.buttonBypassLane7.DownImage = this.buttonBypassLane8.DownImage = this.buttonBypassLane9.DownImage = + this.buttonBypassLane10.DownImage = this.buttonBypassLane11.DownImage = this.buttonBypassLane12.DownImage = + this.buttonBypassMode.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerEnable)); - this.buttonScreen.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerScreenDisable)); - this.buttonScreen.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerScreenDown)); - this.buttonScreen.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerScreenUp)); - this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackDisable)); - this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackDown)); - this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackUp)); + this.buttonBypassLane1.UpImage = this.buttonBypassLane2.UpImage = this.buttonBypassLane3.UpImage = + this.buttonBypassLane4.UpImage = this.buttonBypassLane5.UpImage = this.buttonBypassLane6.UpImage = + this.buttonBypassLane7.UpImage = this.buttonBypassLane8.UpImage = this.buttonBypassLane9.UpImage = + this.buttonBypassLane10.UpImage = this.buttonBypassLane11.UpImage = this.buttonBypassLane12.UpImage = + this.buttonBypassMode.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerDisable)); + #endregion + break; + case DataStore.LanguageID.Japanese: + this.labelTitle.Text = "構成"; - this.buttonBypassLane1.DownImage = this.buttonBypassLane2.DownImage = this.buttonBypassLane3.DownImage = - this.buttonBypassLane4.DownImage = this.buttonBypassLane5.DownImage = this.buttonBypassLane6.DownImage = - this.buttonBypassLane7.DownImage = this.buttonBypassLane8.DownImage = this.buttonBypassLane9.DownImage = - this.buttonBypassLane10.DownImage = this.buttonBypassLane11.DownImage = this.buttonBypassLane12.DownImage = - this.buttonBypassMode.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerEnable)); + this.groupBoxAutoZero.Text = "オㅡトゼロ"; + this.labelStaticTime.Text = "時間"; + this.labelStaticRange.Text = "範囲"; + this.labelStaticVariable.Text = "変化"; + this.labelStaticMode.Text = "モード"; - this.buttonBypassLane1.UpImage = this.buttonBypassLane2.UpImage = this.buttonBypassLane3.UpImage = - this.buttonBypassLane4.UpImage = this.buttonBypassLane5.UpImage = this.buttonBypassLane6.UpImage = - this.buttonBypassLane7.UpImage = this.buttonBypassLane8.UpImage = this.buttonBypassLane9.UpImage = - this.buttonBypassLane10.UpImage = this.buttonBypassLane11.UpImage = this.buttonBypassLane12.UpImage = - this.buttonBypassMode.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerDisable)); - } - else - { + this.groupBoxOption.Text = "オプション設定"; + this.labelStaticEmptyWeight.Text = "空重量セット"; + this.labelStaticChattering.Text = "チャタリング"; + this.labelStaticDecimalPoint.Text = "小数点"; + this.labelStaticBuzzerOnTime.Text = "ブザㅡON時間"; + this.labelStaticRelayOnTime.Text = "リレㅡON時間"; + this.labelStaticBypass.Text = "バイパスモㅡド"; + this.labelStaticEXT1DelayTime.Text = "外部出力遅延時間"; + this.labelStaticEXT1RunTime.Text = "外部出力 運転時間"; + this.groupBoxComm.Text = "通信"; + this.labelStaticCommunicationSpeed.Text = "ボㅡレㅡト"; + this.labelStaticCommunicationMode.Text = "モㅡド"; + + this.labelTitleLine1.Text = "レㅡン 1"; + this.labelTitleLine2.Text = "レㅡン 2"; + this.labelTitleLine3.Text = "レㅡン 3"; + this.labelTitleLine4.Text = "レㅡン 4"; + this.labelTitleLine5.Text = "レㅡン 5"; + this.labelTitleLine6.Text = "レㅡン 6"; + this.labelTitleLine7.Text = "レㅡン 7"; + this.labelTitleLine8.Text = "レㅡン 8"; + this.labelTitleLine9.Text = "レㅡン 9"; + this.labelTitleLine10.Text = "レㅡン 10"; + this.labelTitleLine11.Text = "レㅡン 11"; + this.labelTitleLine12.Text = "レㅡン 12"; + this.labelTitleLine13.Text = "レㅡン 13"; + this.labelTitleLine14.Text = "レㅡン 14"; + this.labelTitleLine15.Text = "レㅡン 15"; + this.labelTitleLine16.Text = "レㅡン 16"; + + this.labelStaticBypass.Text = "バイパスモㅡド"; + + this.buttonSave3.Text = this.buttonSaveBypass.Text = "保存"; + this.buttonSend.Text = "送信"; + + this.buttonScreen.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engScreenDisable)); + this.buttonScreen.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engScreenDown)); + this.buttonScreen.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engScreenUp)); + this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDisable)); + this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDown)); + this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackUp)); + + this.buttonBypassLane1.DownImage = this.buttonBypassLane2.DownImage = this.buttonBypassLane3.DownImage = + this.buttonBypassLane4.DownImage = this.buttonBypassLane5.DownImage = this.buttonBypassLane6.DownImage = + this.buttonBypassLane7.DownImage = this.buttonBypassLane8.DownImage = this.buttonBypassLane9.DownImage = + this.buttonBypassLane10.DownImage = this.buttonBypassLane11.DownImage = this.buttonBypassLane12.DownImage = + this.buttonBypassMode.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeEnable)); + + this.buttonBypassLane1.UpImage = this.buttonBypassLane2.UpImage = this.buttonBypassLane3.UpImage = + this.buttonBypassLane4.UpImage = this.buttonBypassLane5.UpImage = this.buttonBypassLane6.UpImage = + this.buttonBypassLane7.UpImage = this.buttonBypassLane8.UpImage = this.buttonBypassLane9.UpImage = + this.buttonBypassLane10.UpImage = this.buttonBypassLane11.UpImage = this.buttonBypassLane12.UpImage = + this.buttonBypassMode.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeDisable)); + break; + default: + break; } } private void InitializeControl() @@ -327,25 +393,31 @@ namespace INT63DC_2C.Forms this.comboBoxZeroParameterMode.Items.Clear(); this.comboBoxZeroParameterMode.SelectedIndexChanged -= new EventHandler(this.comboBoxZeroParameterMode_SelectedIndexChanged); - if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) + switch (this.ParentForm.SystemConfig.Language) { - this.comboBoxZeroParameterMode.Items.Add("模式1"); - this.comboBoxZeroParameterMode.Items.Add("模式2"); - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.comboBoxZeroParameterMode.Items.Add("Režim1"); - this.comboBoxZeroParameterMode.Items.Add("Režim2"); - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.comboBoxZeroParameterMode.Items.Add("Modus1"); - this.comboBoxZeroParameterMode.Items.Add("Modus2"); - } - else - { - this.comboBoxZeroParameterMode.Items.Add("Mode1"); - this.comboBoxZeroParameterMode.Items.Add("Mode2"); + case DataStore.LanguageID.Korean: + case DataStore.LanguageID.English: + this.comboBoxZeroParameterMode.Items.Add("Mode1"); + this.comboBoxZeroParameterMode.Items.Add("Mode2"); + break; + case DataStore.LanguageID.Chinese: + this.comboBoxZeroParameterMode.Items.Add("模式1"); + this.comboBoxZeroParameterMode.Items.Add("模式2"); + break; + case DataStore.LanguageID.Czech: + this.comboBoxZeroParameterMode.Items.Add("Režim1"); + this.comboBoxZeroParameterMode.Items.Add("Režim2"); + break; + case DataStore.LanguageID.German: + this.comboBoxZeroParameterMode.Items.Add("Modus1"); + this.comboBoxZeroParameterMode.Items.Add("Modus2"); + break; + case DataStore.LanguageID.Japanese: + this.comboBoxZeroParameterMode.Items.Add("モード1"); + this.comboBoxZeroParameterMode.Items.Add("モード2"); + break; + default: + break; } this.comboBoxZeroParameterMode.SelectedIndex = 0; this.comboBoxZeroParameterMode.SelectedIndexChanged += new EventHandler(this.comboBoxZeroParameterMode_SelectedIndexChanged); @@ -601,16 +673,8 @@ namespace INT63DC_2C.Forms } 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.labelProtocolDescriptionCOM3_1.Text = ""; + this.labelProtocolDescriptionCOM3_2.Text = ""; } if (this.ParentForm.SystemConfig.Serial3Mode != 0) diff --git a/INT63DC_2C/Forms/FormDataBackup.cs b/INT63DC_2C/Forms/FormDataBackup.cs index 1a092e7..70598dd 100644 --- a/INT63DC_2C/Forms/FormDataBackup.cs +++ b/INT63DC_2C/Forms/FormDataBackup.cs @@ -42,91 +42,115 @@ namespace INT63DC_2C.Forms { ImageDll images = new ImageDll(); - if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) + switch (this.ParentForm.SystemConfig.Language) { + case DataStore.LanguageID.Korean: + break; + case DataStore.LanguageID.English: + #region English + this.labelTitle.Text = "Data backup"; - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.labelTitle.Text = "Data backup"; + this.labelStaticBackupEnable.Text = "Create backup file"; + this.labelStaticSaveFile.Text = "Saved files"; + this.labelStaticWarning1.Text = "※ Caution"; + this.labelStaticWarning2.Text = "The saved data in this system is deleted if the backup is performed through USB memory device."; - this.labelStaticBackupEnable.Text = "Create backup file"; - this.labelStaticSaveFile.Text = "Saved files"; - this.labelStaticWarning1.Text = "※ Caution"; - this.labelStaticWarning2.Text = "The saved data in this system is deleted if the backup is performed through USB memory device."; + this.buttonBackup.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackupDisable)); + this.buttonBackup.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackupDown)); + this.buttonBackup.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackupUp)); - this.buttonBackup.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackupDisable)); - this.buttonBackup.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackupDown)); - this.buttonBackup.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackupUp)); + this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDisable)); + this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDown)); + this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackUp)); + #endregion + break; + case DataStore.LanguageID.Chinese: + #region Chinese + this.labelTitle.Text = "数据备份"; - this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDisable)); - this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDown)); - this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackUp)); - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.labelTitle.Text = "数据备份"; + this.labelStaticBackupEnable.Text = "备份"; + this.labelStaticSaveFile.Text = "文件"; + this.labelStaticWarning1.Text = "※注意:"; + this.labelStaticWarning2.Text = "当数据保存到USB中后,系统数据被删除"; - this.labelStaticBackupEnable.Text = "备份"; - this.labelStaticSaveFile.Text = "文件"; - this.labelStaticWarning1.Text = "※注意:"; - this.labelStaticWarning2.Text = "当数据保存到USB中后,系统数据被删除"; + this.radioButtonEnable.Text = "启用"; + this.radioButtonDisable.Text = "禁用"; - this.radioButtonEnable.Text = "启用"; - this.radioButtonDisable.Text = "禁用"; + this.buttonUSBID.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormDataBackupUSBIDDown)); + this.buttonUSBID.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormDataBackupUSBIDUp)); - this.buttonUSBID.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormDataBackupUSBIDDown)); - this.buttonUSBID.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormDataBackupUSBIDUp)); + this.buttonBackup.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackupDisable)); + this.buttonBackup.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackupDown)); + this.buttonBackup.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackupUp)); - this.buttonBackup.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackupDisable)); - this.buttonBackup.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackupDown)); - this.buttonBackup.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackupUp)); + this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackDisable)); + this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackDown)); + this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackUp)); + #endregion + break; + case DataStore.LanguageID.Czech: + #region Czech + this.labelTitle.Text = "Záloha dat"; - this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackDisable)); - this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackDown)); - this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackUp)); - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.labelTitle.Text = "Záloha dat"; + this.labelStaticBackupEnable.Text = "Zálohovat"; + this.labelStaticSaveFile.Text = "Soubor"; + this.labelStaticWarning1.Text = "※ Pozor"; + this.labelStaticWarning2.Text = "Po provedení zálohy na USB se data v systému se smažou!"; + this.radioButtonEnable.Text = "Povolit"; + this.radioButtonDisable.Text = "Zakázat"; - this.labelStaticBackupEnable.Text = "Zálohovat"; - this.labelStaticSaveFile.Text = "Soubor"; - this.labelStaticWarning1.Text = "※ Pozor"; - this.labelStaticWarning2.Text = "Po provedení zálohy na USB se data v systému se smažou!"; - this.radioButtonEnable.Text = "Povolit"; - this.radioButtonDisable.Text = "Zakázat"; + this.buttonBackup.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackupDisable)); + this.buttonBackup.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackupDown)); + this.buttonBackup.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackupUp)); - this.buttonBackup.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackupDisable)); - this.buttonBackup.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackupDown)); - this.buttonBackup.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackupUp)); + this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackDisable)); + this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackDown)); + this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackUp)); + #endregion + break; + case DataStore.LanguageID.German: + #region German + this.labelTitle.Text = "Datensicherung"; - this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackDisable)); - this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackDown)); - this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackUp)); - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.labelTitle.Text = "Datensicherung"; + this.labelStaticBackupEnable.Text = "Sicherung"; + this.labelStaticSaveFile.Text = "Datei"; + this.labelStaticWarning1.Text = "※ Vorsicht"; + this.labelStaticWarning2.Text = "Nach der USB-Sicherung werden die Daten im System gelöscht!"; + this.radioButtonEnable.Text = "Aktivieren"; + this.radioButtonDisable.Text = "Deaktivieren"; - this.labelStaticBackupEnable.Text = "Sicherung"; - this.labelStaticSaveFile.Text = "Datei"; - this.labelStaticWarning1.Text = "※ Vorsicht"; - this.labelStaticWarning2.Text = "Nach der USB-Sicherung werden die Daten im System gelöscht!"; - this.radioButtonEnable.Text = "Aktivieren"; - this.radioButtonDisable.Text = "Deaktivieren"; + this.buttonBackup.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackupDisable)); + this.buttonBackup.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackupDown)); + this.buttonBackup.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackupUp)); - this.buttonBackup.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackupDisable)); - this.buttonBackup.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackupDown)); - this.buttonBackup.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackupUp)); + this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackDisable)); + this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackDown)); + this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackUp)); + #endregion + break; + case DataStore.LanguageID.Japanese: + #region Japanese + this.labelTitle.Text = "デㅡタバックアップ"; - this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackDisable)); - this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackDown)); - this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackUp)); - } - else - { + this.labelStaticBackupEnable.Text = "バックアップ"; + this.labelStaticSaveFile.Text = "ファイル"; + this.labelStaticWarning1.Text = "※ 注意"; + this.labelStaticWarning2.Text = "システム内のデㅡタは削除される USBメモリにデㅡタをバックアップする場合"; + this.radioButtonEnable.Text = "有効"; + this.radioButtonDisable.Text = "無効"; + + this.buttonBackup.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackupDisable)); + this.buttonBackup.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackupDown)); + this.buttonBackup.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackupUp)); + + this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDisable)); + this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDown)); + this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackUp)); + #endregion + break; + default: + break; } } private void DefaultSetting() diff --git a/INT63DC_2C/Forms/FormDataStatistics.cs b/INT63DC_2C/Forms/FormDataStatistics.cs index fde01c2..e857ec2 100644 --- a/INT63DC_2C/Forms/FormDataStatistics.cs +++ b/INT63DC_2C/Forms/FormDataStatistics.cs @@ -85,73 +85,93 @@ namespace INT63DC_2C.Forms { ImageDll images = new ImageDll(); - if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) + switch (this.ParentForm.SystemConfig.Language) { + case DataStore.LanguageID.Korean: + break; + case DataStore.LanguageID.English: + #region English + this.labelTitle.Text = "Data Statistics"; - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.labelTitle.Text = "Data Statistics"; + this.buttonBackup.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackupDisable)); + this.buttonBackup.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackupDown)); + this.buttonBackup.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackupUp)); - this.buttonBackup.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackupDisable)); - this.buttonBackup.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackupDown)); - this.buttonBackup.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackupUp)); + this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDisable)); + this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDown)); + this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackUp)); + #endregion + break; + case DataStore.LanguageID.Chinese: + #region Chinese + this.labelTitle.Text = "数据统计"; - this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDisable)); - this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDown)); - this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackUp)); - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.labelTitle.Text = "数据统计"; + this.buttonBackup.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackupDisable)); + this.buttonBackup.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackupDown)); + this.buttonBackup.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackupUp)); - this.buttonBackup.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackupDisable)); - this.buttonBackup.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackupDown)); - this.buttonBackup.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackupUp)); + this.buttonFileSelect.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFileSelectDisable)); + this.buttonFileSelect.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFileSelectDown)); + this.buttonFileSelect.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFileSelectUp)); - this.buttonFileSelect.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFileSelectDisable)); - this.buttonFileSelect.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFileSelectDown)); - this.buttonFileSelect.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFileSelectUp)); + this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackDisable)); + this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackDown)); + this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackUp)); + #endregion + break; + case DataStore.LanguageID.Czech: + #region Czech + this.labelTitle.Text = "Data Statistics"; - this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackDisable)); - this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackDown)); - this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackUp)); - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.labelTitle.Text = "Data Statistics"; + this.buttonBackup.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackupDisable)); + this.buttonBackup.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackupDown)); + this.buttonBackup.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackupUp)); - this.buttonBackup.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackupDisable)); - this.buttonBackup.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackupDown)); - this.buttonBackup.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackupUp)); + this.buttonFileSelect.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeFileSelectDisable)); + this.buttonFileSelect.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeFileSelectDown)); + this.buttonFileSelect.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeFileSelectUp)); - this.buttonFileSelect.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeFileSelectDisable)); - this.buttonFileSelect.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeFileSelectDown)); - this.buttonFileSelect.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeFileSelectUp)); + this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackDisable)); + this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackDown)); + this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackUp)); + #endregion + break; + case DataStore.LanguageID.German: + #region German + this.labelTitle.Text = "Data Statistics"; - this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackDisable)); - this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackDown)); - this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackUp)); - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.labelTitle.Text = "Data Statistics"; + this.buttonBackup.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackupDisable)); + this.buttonBackup.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackupDown)); + this.buttonBackup.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackupUp)); - this.buttonBackup.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackupDisable)); - this.buttonBackup.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackupDown)); - this.buttonBackup.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackupUp)); + this.buttonFileSelect.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerFileSelectDisable)); + this.buttonFileSelect.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerFileSelectDown)); + this.buttonFileSelect.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerFileSelectUp)); - this.buttonFileSelect.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerFileSelectDisable)); - this.buttonFileSelect.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerFileSelectDown)); - this.buttonFileSelect.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerFileSelectUp)); + this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackDisable)); + this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackDown)); + this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackUp)); + #endregion + break; + case DataStore.LanguageID.Japanese: + #region Japanese + this.labelTitle.Text = "データ統計"; - this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackDisable)); - this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackDown)); - this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackUp)); - } - else - { + this.buttonBackup.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackupDisable)); + this.buttonBackup.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackupDown)); + this.buttonBackup.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackupUp)); + this.buttonFileSelect.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerFileSelectDisable)); + this.buttonFileSelect.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerFileSelectDown)); + this.buttonFileSelect.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerFileSelectUp)); + + this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDisable)); + this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDown)); + this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackUp)); + #endregion + break; + default: + break; } } private void InitializeControl() diff --git a/INT63DC_2C/Forms/FormEquipmentSetting.Designer.cs b/INT63DC_2C/Forms/FormEquipmentSetting.Designer.cs index 79f046c..9c0b73e 100644 --- a/INT63DC_2C/Forms/FormEquipmentSetting.Designer.cs +++ b/INT63DC_2C/Forms/FormEquipmentSetting.Designer.cs @@ -39,8 +39,8 @@ this.labelWeightLimitIgnoreCount = new SmartX.SmartLabel(); this.labelStaticWeightLimitIgnoreCount = new SmartX.SmartLabel(); this.panel1 = new System.Windows.Forms.Panel(); - this.rbServoMotor = new System.Windows.Forms.RadioButton(); - this.rbAcMotor = new System.Windows.Forms.RadioButton(); + this.radioButtonServoMotor = new System.Windows.Forms.RadioButton(); + this.radioButtonAcMotor = new System.Windows.Forms.RadioButton(); this.labelStaticMotor = new SmartX.SmartLabel(); this.labelEmptyWeight = new SmartX.SmartLabel(); this.labelStaticEmptyWeight = new SmartX.SmartLabel(); @@ -58,6 +58,7 @@ this.buttonBack = new SmartX.SmartButton(); this.buttonSave = new SmartX.SmartButton(); this.panel7 = new System.Windows.Forms.Panel(); + this.radioButtonLanguageJap = new System.Windows.Forms.RadioButton(); this.radioButtonLanguageGerman = new System.Windows.Forms.RadioButton(); this.radioButtonLanguageCzech = new System.Windows.Forms.RadioButton(); this.radioButtonLanguageChinese = new System.Windows.Forms.RadioButton(); @@ -274,32 +275,32 @@ // panel1 // this.panel1.BackColor = System.Drawing.SystemColors.ControlLight; - this.panel1.Controls.Add(this.rbServoMotor); - this.panel1.Controls.Add(this.rbAcMotor); + this.panel1.Controls.Add(this.radioButtonServoMotor); + this.panel1.Controls.Add(this.radioButtonAcMotor); this.panel1.Location = new System.Drawing.Point(425, 352); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(450, 25); // - // rbServoMotor + // radioButtonServoMotor // - this.rbServoMotor.Font = new System.Drawing.Font("New Gulim", 12F, System.Drawing.FontStyle.Bold); - this.rbServoMotor.Location = new System.Drawing.Point(212, 3); - this.rbServoMotor.Name = "rbServoMotor"; - this.rbServoMotor.Size = new System.Drawing.Size(189, 20); - this.rbServoMotor.TabIndex = 1; - this.rbServoMotor.Text = "Servo Motor"; - this.rbServoMotor.Click += new System.EventHandler(this.control_Click); + this.radioButtonServoMotor.Font = new System.Drawing.Font("New Gulim", 12F, System.Drawing.FontStyle.Bold); + this.radioButtonServoMotor.Location = new System.Drawing.Point(212, 3); + this.radioButtonServoMotor.Name = "radioButtonServoMotor"; + this.radioButtonServoMotor.Size = new System.Drawing.Size(189, 20); + this.radioButtonServoMotor.TabIndex = 1; + this.radioButtonServoMotor.Text = "Servo Motor"; + this.radioButtonServoMotor.Click += new System.EventHandler(this.control_Click); // - // rbAcMotor + // radioButtonAcMotor // - this.rbAcMotor.Checked = true; - this.rbAcMotor.Font = new System.Drawing.Font("New Gulim", 12F, System.Drawing.FontStyle.Bold); - this.rbAcMotor.Location = new System.Drawing.Point(20, 3); - this.rbAcMotor.Name = "rbAcMotor"; - this.rbAcMotor.Size = new System.Drawing.Size(189, 20); - this.rbAcMotor.TabIndex = 0; - this.rbAcMotor.Text = "AC Motor"; - this.rbAcMotor.Click += new System.EventHandler(this.control_Click); + this.radioButtonAcMotor.Checked = true; + this.radioButtonAcMotor.Font = new System.Drawing.Font("New Gulim", 12F, System.Drawing.FontStyle.Bold); + this.radioButtonAcMotor.Location = new System.Drawing.Point(20, 3); + this.radioButtonAcMotor.Name = "radioButtonAcMotor"; + this.radioButtonAcMotor.Size = new System.Drawing.Size(189, 20); + this.radioButtonAcMotor.TabIndex = 0; + this.radioButtonAcMotor.Text = "AC Motor"; + this.radioButtonAcMotor.Click += new System.EventHandler(this.control_Click); // // labelStaticMotor // @@ -308,7 +309,7 @@ this.labelStaticMotor.BackPictureBox2 = null; this.labelStaticMotor.BorderColor = System.Drawing.Color.Black; this.labelStaticMotor.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelStaticMotor.Font = new System.Drawing.Font("New Gulim", 12F, System.Drawing.FontStyle.Bold); + this.labelStaticMotor.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); this.labelStaticMotor.InitVisible = true; this.labelStaticMotor.LineSpacing = 0F; this.labelStaticMotor.Location = new System.Drawing.Point(120, 352); @@ -585,7 +586,7 @@ this.labelStaticLogin.BackPictureBox2 = null; this.labelStaticLogin.BorderColor = System.Drawing.Color.Black; this.labelStaticLogin.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelStaticLogin.Font = new System.Drawing.Font("New Gulim", 12F, System.Drawing.FontStyle.Bold); + this.labelStaticLogin.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); this.labelStaticLogin.InitVisible = true; this.labelStaticLogin.LineSpacing = 0F; this.labelStaticLogin.Location = new System.Drawing.Point(120, 290); @@ -662,6 +663,7 @@ // panel7 // this.panel7.BackColor = System.Drawing.SystemColors.ControlLight; + this.panel7.Controls.Add(this.radioButtonLanguageJap); this.panel7.Controls.Add(this.radioButtonLanguageGerman); this.panel7.Controls.Add(this.radioButtonLanguageCzech); this.panel7.Controls.Add(this.radioButtonLanguageChinese); @@ -671,6 +673,17 @@ this.panel7.Name = "panel7"; this.panel7.Size = new System.Drawing.Size(450, 50); // + // radioButtonLanguageJap + // + this.radioButtonLanguageJap.Font = new System.Drawing.Font("New Gulim", 12F, System.Drawing.FontStyle.Bold); + this.radioButtonLanguageJap.Location = new System.Drawing.Point(272, 27); + this.radioButtonLanguageJap.Name = "radioButtonLanguageJap"; + this.radioButtonLanguageJap.Size = new System.Drawing.Size(120, 20); + this.radioButtonLanguageJap.TabIndex = 6; + this.radioButtonLanguageJap.TabStop = false; + this.radioButtonLanguageJap.Text = "日本語"; + this.radioButtonLanguageJap.Click += new System.EventHandler(this.control_Click); + // // radioButtonLanguageGerman // this.radioButtonLanguageGerman.Font = new System.Drawing.Font("New Gulim", 12F, System.Drawing.FontStyle.Bold); @@ -805,7 +818,7 @@ this.labelStaticLanguage.BackPictureBox2 = null; this.labelStaticLanguage.BorderColor = System.Drawing.Color.Black; this.labelStaticLanguage.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelStaticLanguage.Font = new System.Drawing.Font("New Gulim", 12F, System.Drawing.FontStyle.Bold); + this.labelStaticLanguage.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); this.labelStaticLanguage.InitVisible = true; this.labelStaticLanguage.LineSpacing = 0F; this.labelStaticLanguage.Location = new System.Drawing.Point(120, 414); @@ -864,7 +877,7 @@ this.labelStaticIndividualNG.BackPictureBox2 = null; this.labelStaticIndividualNG.BorderColor = System.Drawing.Color.Black; this.labelStaticIndividualNG.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelStaticIndividualNG.Font = new System.Drawing.Font("New Gulim", 12F, System.Drawing.FontStyle.Bold); + this.labelStaticIndividualNG.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); this.labelStaticIndividualNG.InitVisible = true; this.labelStaticIndividualNG.LineSpacing = 0F; this.labelStaticIndividualNG.Location = new System.Drawing.Point(120, 321); @@ -883,7 +896,7 @@ this.labelStaticOrder.BackPictureBox2 = null; this.labelStaticOrder.BorderColor = System.Drawing.Color.Black; this.labelStaticOrder.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.labelStaticOrder.Font = new System.Drawing.Font("New Gulim", 12F, System.Drawing.FontStyle.Bold); + this.labelStaticOrder.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold); this.labelStaticOrder.InitVisible = true; this.labelStaticOrder.LineSpacing = 0F; this.labelStaticOrder.Location = new System.Drawing.Point(120, 383); @@ -943,8 +956,6 @@ this.Controls.Add(this.groupBoxSpecialMenu); this.Controls.Add(this.smartForm1); this.Name = "FormEquipmentSetting"; - this.Text = " " + - " "; ((System.ComponentModel.ISupportInitialize)(this.smartForm1)).EndInit(); this.groupBoxSpecialMenu.ResumeLayout(false); this.panel3.ResumeLayout(false); @@ -991,8 +1002,8 @@ private SmartX.SmartLabel labelInfo2; private SmartX.SmartLabel labelInfo1; private System.Windows.Forms.Panel panel1; - public System.Windows.Forms.RadioButton rbServoMotor; - public System.Windows.Forms.RadioButton rbAcMotor; + public System.Windows.Forms.RadioButton radioButtonServoMotor; + public System.Windows.Forms.RadioButton radioButtonAcMotor; private SmartX.SmartLabel labelStaticMotor; public SmartX.SmartLabel labelEmptyWeight; private SmartX.SmartLabel labelStaticEmptyWeight; @@ -1003,5 +1014,6 @@ public System.Windows.Forms.RadioButton radioButtonCOM2; public System.Windows.Forms.RadioButton radioButtonCOM1; private SmartX.SmartLabel smartLabel1; + private System.Windows.Forms.RadioButton radioButtonLanguageJap; } } \ No newline at end of file diff --git a/INT63DC_2C/Forms/FormEquipmentSetting.cs b/INT63DC_2C/Forms/FormEquipmentSetting.cs index 2674feb..2bdab0a 100644 --- a/INT63DC_2C/Forms/FormEquipmentSetting.cs +++ b/INT63DC_2C/Forms/FormEquipmentSetting.cs @@ -40,157 +40,189 @@ namespace INT63DC_2C.Forms { ImageDll images = new ImageDll(); - if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) + switch (this.ParentForm.SystemConfig.Language) { + case DataStore.LanguageID.Korean: + break; + case DataStore.LanguageID.English: + #region English + this.labelTitle.Text = "Equipment settings"; - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - #region English - this.labelTitle.Text = "Equipment settings"; + this.labelStaticLane.Text = "Lane"; + this.labelStaticOrder.Text = "Order"; + this.labelStaticIndividualNG.Text = "Individual NG"; + this.labelStaticLanguage.Text = "Language"; + this.labelStaticSorter1Location.Text = "Sorter1 Location"; + this.labelStaticSorter2Location.Text = "Sorter2 Location"; + this.labelStaticSorter3Location.Text = "Sorter3 Location"; + this.labelStaticLogin.Text = "Login"; + this.labelStaticEmptyWeight.Text = "Empty weight Set"; + this.labelStaticMotor.Text = "Motor"; + this.labelStaticWeightLimitIgnoreCount.Text = "Weight limit - Ignore count"; - this.labelStaticLane.Text = "Lane"; - this.labelStaticOrder.Text = "Order"; - this.labelStaticIndividualNG.Text = "Individual NG"; - this.labelStaticLanguage.Text = "Language"; - this.labelStaticSorter1Location.Text = "Sorter1 Location"; - this.labelStaticSorter2Location.Text = "Sorter2 Location"; - this.labelStaticSorter3Location.Text = "Sorter3 Location"; - this.labelStaticLogin.Text = "Login"; - this.labelStaticEmptyWeight.Text = "Empty weight Set"; - this.labelStaticMotor.Text = "Motor"; - this.labelStaticWeightLimitIgnoreCount.Text = "Weight limit - Ignore count"; + this.labelInfo1.Text = "※ Sorting NG products by weight"; + this.labelInfo2.Text = "※ Normal product (selected under quantity)"; + this.labelInfo3.Text = "※ Sampling Sorting (if not used, use in sorter 2)"; - this.labelInfo1.Text = "※ Sorting NG products by weight"; - this.labelInfo2.Text = "※ Normal product (selected under quantity)"; - this.labelInfo3.Text = "※ Sampling Sorting (if not used, use in sorter 2)"; + this.labelBuadrateWarning.Text = "※ After changing setting, Turn the power off and back on"; + this.labelBuadrateWarning2.Text = "※ Do not change the value except engineer"; - this.labelBuadrateWarning.Text = "※ After changing setting, Turn the power off and back on"; - this.labelBuadrateWarning2.Text = "※ Do not change the value except engineer"; + this.buttonSave.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engSaveDisable)); + this.buttonSave.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engSaveDown)); + this.buttonSave.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engSaveUp)); - this.buttonSave.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engSaveDisable)); - this.buttonSave.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engSaveDown)); - this.buttonSave.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engSaveUp)); + this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDisable)); + this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDown)); + this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackUp)); + #endregion + break; + case DataStore.LanguageID.Chinese: + #region Chinese + this.labelTitle.Text = "设备设置"; - this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDisable)); - this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDown)); - this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackUp)); - #endregion - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - #region Chinese - this.labelTitle.Text = "设备设置"; + this.labelStaticLane.Text = "列"; + this.labelStaticOrder.Text = "重量显示"; + this.labelStaticIndividualNG.Text = "单独NG"; + this.labelStaticLanguage.Text = "语言"; + this.labelStaticSorter1Location.Text = "分类机1 地点"; + this.labelStaticSorter2Location.Text = "分类机2 地点"; + this.labelStaticSorter3Location.Text = "分类机3 地点"; + this.labelStaticLogin.Text = "登錄"; + this.labelStaticEmptyWeight.Text = "空重设置"; + this.labelStaticMotor.Text = "马达"; + this.labelStaticWeightLimitIgnoreCount.Text = "重量限制 - 忽略计数"; - this.labelStaticLane.Text = "列"; - this.labelStaticOrder.Text = "重量显示"; - this.labelStaticIndividualNG.Text = "单独NG"; - this.labelStaticLanguage.Text = "语言"; - this.labelStaticSorter1Location.Text = "分类机1 地点"; - this.labelStaticSorter2Location.Text = "分类机2 地点"; - this.labelStaticSorter3Location.Text = "分类机3 地点"; - this.labelStaticLogin.Text = "登錄"; - this.labelStaticEmptyWeight.Text = "空重设置"; - this.labelStaticMotor.Text = "马达"; - this.labelStaticWeightLimitIgnoreCount.Text = "重量限制 - 忽略计数"; + this.radioButtonAcMotor.Text = "交流电机(AC)"; + this.radioButtonServoMotor.Text = "伺服电机(Servo)"; - this.rbAcMotor.Text = "交流电机(AC)"; - this.rbServoMotor.Text = "伺服电机(Servo)"; + this.radioButtonWeightViewForward.Text = "正向(1~12)"; + this.radioButtonWeightViewReverse.Text = "反向(12~1)"; - this.radioButtonWeightViewForward.Text = "正向(1~12)"; - this.radioButtonWeightViewReverse.Text = "反向(12~1)"; + this.labelInfo1.Text = "※ 重量不良产品筛选"; + this.labelInfo2.Text = "※ 正常产品 (选择数量未达标)"; + this.labelInfo3.Text = "※ 采样筛选 (未使用时在筛选机2中使用)"; - this.labelInfo1.Text = "※ 重量不良产品筛选"; - this.labelInfo2.Text = "※ 正常产品 (选择数量未达标)"; - this.labelInfo3.Text = "※ 采样筛选 (未使用时在筛选机2中使用)"; + this.labelBuadrateWarning.Text = "※ 电源重启后,设置会自动更新"; + this.labelBuadrateWarning2.Text = "※ 除了工程师之外,不要改变这个值"; - this.labelBuadrateWarning.Text = "※ 电源重启后,设置会自动更新"; - this.labelBuadrateWarning2.Text = "※ 除了工程师之外,不要改变这个值"; + this.buttonEachNG.DownImage = this.buttonLogin.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnOn_84X25)); + this.buttonEachNG.UpImage = this.buttonLogin.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnOff_84X25)); - this.buttonEachNG.DownImage = this.buttonLogin.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnOn_84X25)); - this.buttonEachNG.UpImage = this.buttonLogin.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnOff_84X25)); + this.buttonSave.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnSaveDisable)); + this.buttonSave.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnSaveDown)); + this.buttonSave.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnSaveUp)); - this.buttonSave.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnSaveDisable)); - this.buttonSave.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnSaveDown)); - this.buttonSave.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnSaveUp)); + this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackDisable)); + this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackDown)); + this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackUp)); + #endregion + break; + case DataStore.LanguageID.Czech: + #region Czech + this.labelTitle.Text = "Nastavení zařízení"; - this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackDisable)); - this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackDown)); - this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackUp)); - #endregion - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - #region Czech - this.labelTitle.Text = "Nastavení zařízení"; + this.labelStaticLane.Text = "Řada"; + this.labelStaticOrder.Text = "Zobrazení hmotnosti"; + this.labelStaticIndividualNG.Text = "Individuální vyřazování"; + this.labelStaticLanguage.Text = "Jazyk"; + this.labelStaticSorter1Location.Text = "Vyřazovač1 umístění"; + this.labelStaticSorter2Location.Text = "Vyřazovač2 umístění"; + this.labelStaticSorter3Location.Text = "Vyřazovač3 umístění"; + this.labelStaticLogin.Text = "Přihlásit se"; + this.labelStaticEmptyWeight.Text = "Nastavení prázdné hmotnosti"; + this.labelStaticMotor.Text = "Motor"; + this.labelStaticWeightLimitIgnoreCount.Text = "hmotnostní limit - ignorovat počet"; - this.labelStaticLane.Text = "Řada"; - this.labelStaticOrder.Text = "Zobrazení hmotnosti"; - this.labelStaticIndividualNG.Text = "Individuální vyřazování"; - this.labelStaticLanguage.Text = "Jazyk"; - this.labelStaticSorter1Location.Text = "Vyřazovač1 umístění"; - this.labelStaticSorter2Location.Text = "Vyřazovač2 umístění"; - this.labelStaticSorter3Location.Text = "Vyřazovač3 umístění"; - this.labelStaticLogin.Text = "Přihlásit se"; - this.labelStaticEmptyWeight.Text = "Nastavení prázdné hmotnosti"; - this.labelStaticMotor.Text = "Motor"; - this.labelStaticWeightLimitIgnoreCount.Text = "hmotnostní limit - ignorovat počet"; + this.labelInfo1.Text = "※ Třídění NG produktů podle hmotnosti"; + this.labelInfo2.Text = "※ Normální produkt (vybrán pod množstvím)"; + this.labelInfo3.Text = "※ Třídění vzorků (pokud není použito, použijte v třídiči 2)"; - this.labelInfo1.Text = "※ Třídění NG produktů podle hmotnosti"; - this.labelInfo2.Text = "※ Normální produkt (vybrán pod množstvím)"; - this.labelInfo3.Text = "※ Třídění vzorků (pokud není použito, použijte v třídiči 2)"; + this.labelBuadrateWarning.Text = "※ Po změně nastavení vypněte a znovu zapněte napájení"; + this.labelBuadrateWarning2.Text = "※ Nezměňujte hodnotu kromě inženýra"; - this.labelBuadrateWarning.Text = "※ Po změně nastavení vypněte a znovu zapněte napájení"; - this.labelBuadrateWarning2.Text = "※ Nezměňujte hodnotu kromě inženýra"; + this.buttonSave.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeSaveDisable)); + this.buttonSave.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeSaveDown)); + this.buttonSave.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeSaveUp)); - this.buttonSave.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeSaveDisable)); - this.buttonSave.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeSaveDown)); - this.buttonSave.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeSaveUp)); + this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackDisable)); + this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackDown)); + this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackUp)); + #endregion + break; + case DataStore.LanguageID.German: + #region German + this.labelTitle.Text = "Vorrichtungeinstellung"; - this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackDisable)); - this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackDown)); - this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackUp)); - #endregion - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - #region German - this.labelTitle.Text = "Vorrichtungeinstellung"; + this.radioButtonWeightViewForward.Text = "Vorwärts(1~12)"; + this.radioButtonWeightViewReverse.Text = "Rückwärts(1~12)"; - this.radioButtonWeightViewForward.Text = "Vorwärts(1~12)"; - this.radioButtonWeightViewReverse.Text = "Rückwärts(1~12)"; + this.labelStaticLane.Text = "Reihe"; + this.labelStaticSorter1Location.Text = "Sortierer1 Standort"; + this.labelStaticSorter2Location.Text = "Sortierer2 Standort"; + this.labelStaticSorter3Location.Text = "Sortierer3 Standort"; + this.labelStaticLogin.Text = "Einloggen"; + this.labelStaticIndividualNG.Text = "Individuelle Aussortierung"; + this.labelStaticOrder.Text = "Gewichtsanzeige"; + this.labelStaticLanguage.Text = "Sprache"; + this.labelStaticEmptyWeight.Text = "Leergewichtseinstellung"; + this.labelStaticMotor.Text = "Motor"; + this.labelStaticWeightLimitIgnoreCount.Text = "Gewichtsgrenze - Zählung ignorieren"; - this.labelStaticLane.Text = "Reihe"; - this.labelStaticSorter1Location.Text = "Sortierer1 Standort"; - this.labelStaticSorter2Location.Text = "Sortierer2 Standort"; - this.labelStaticSorter3Location.Text = "Sortierer3 Standort"; - this.labelStaticLogin.Text = "Einloggen"; - this.labelStaticIndividualNG.Text = "Individuelle Aussortierung"; - this.labelStaticOrder.Text = "Gewichtsanzeige"; - this.labelStaticLanguage.Text = "Sprache"; - this.labelStaticEmptyWeight.Text = "Leergewichtseinstellung"; - this.labelStaticMotor.Text = "Motor"; - this.labelStaticWeightLimitIgnoreCount.Text = "Gewichtsgrenze - Zählung ignorieren"; + this.labelInfo1.Text = "※ Sortieren von NG-Produkten nach Gewicht"; + this.labelInfo2.Text = "※ Normales Produkt (ausgewählt unter Menge)"; + this.labelInfo3.Text = "※ Sampling Sorting (falls nicht verwendet, in Sortierer 2 verwenden)"; - this.labelInfo1.Text = "※ Sortieren von NG-Produkten nach Gewicht"; - this.labelInfo2.Text = "※ Normales Produkt (ausgewählt unter Menge)"; - this.labelInfo3.Text = "※ Sampling Sorting (falls nicht verwendet, in Sortierer 2 verwenden)"; + this.labelBuadrateWarning.Text = "※ Stellen Sie nach dem Einstellen des Servoantriebs sicher, Mit dem Hauptschalter aus- und einschalten"; + this.labelBuadrateWarning2.Text = "※ Werte dürfen nur vom Servicetechniker des Herstellers geändert werden"; - this.labelBuadrateWarning.Text = "※ Stellen Sie nach dem Einstellen des Servoantriebs sicher, Mit dem Hauptschalter aus- und einschalten"; - this.labelBuadrateWarning2.Text = "※ Werte dürfen nur vom Servicetechniker des Herstellers geändert werden"; + this.buttonSave.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerSaveDisable)); + this.buttonSave.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerSaveDown)); + this.buttonSave.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerSaveUp)); - this.buttonSave.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerSaveDisable)); - this.buttonSave.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerSaveDown)); - this.buttonSave.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerSaveUp)); + this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackDisable)); + this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackDown)); + this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackUp)); + #endregion + break; + case DataStore.LanguageID.Japanese: + #region Japanese + this.labelTitle.Text = "装置設定"; - this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackDisable)); - this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackDown)); - this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackUp)); - #endregion - } - else - { + this.labelStaticLane.Text = "レㅡン"; + this.labelStaticOrder.Text = "オㅡダㅡ"; + this.labelStaticIndividualNG.Text = "個別NG"; + this.labelStaticLanguage.Text = "言語"; + this.labelStaticSorter1Location.Text = "ソㅡタㅡ 1 の場所"; + this.labelStaticSorter2Location.Text = "ソㅡタㅡ 2 の場所"; + this.labelStaticSorter3Location.Text = "ソㅡタㅡ 3 の場所"; + this.labelStaticLogin.Text = "ログイン"; + this.labelStaticEmptyWeight.Text = "空重量セット"; + this.labelStaticMotor.Text = "モㅡタㅡ"; + this.labelStaticWeightLimitIgnoreCount.Text = "重量制限 - 無視数量"; + + this.radioButtonAcMotor.Text = "交流モㅡタㅡ"; + this.radioButtonServoMotor.Text = "サㅡボモㅡタㅡ"; + this.radioButtonWeightViewForward.Text = "順方向(1~12)"; + this.radioButtonWeightViewReverse.Text = "逆方向(12~1)"; + this.labelInfo1.Text = "※ 重量NG製品選別"; + this.labelInfo2.Text = "※ 正常製品数量未達選別"; + this.labelInfo3.Text = "※ サンプリング選別 (未使用時選別機2を使用)"; + + this.labelBuadrateWarning.Text = "※ 設定変更後は電源を入れ直してください"; + this.labelBuadrateWarning2.Text = "※ エンジニア以外は値を変更しないこと"; + + this.buttonSave.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engSaveDisable)); + this.buttonSave.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engSaveDown)); + this.buttonSave.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engSaveUp)); + + this.buttonBack.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDisable)); + this.buttonBack.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackDown)); + this.buttonBack.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackUp)); + #endregion + break; + default: + break; } } private void InitializeControl() @@ -253,9 +285,9 @@ namespace INT63DC_2C.Forms // 모터 if (this.ParentForm.SystemConfig.MotorSelect == 0) - this.rbAcMotor.Checked = true; + this.radioButtonAcMotor.Checked = true; else - this.rbServoMotor.Checked = true; + this.radioButtonServoMotor.Checked = true; // 중량표시 if (this.ParentForm.SystemConfig.IsWeightViewForward == true) @@ -274,6 +306,8 @@ namespace INT63DC_2C.Forms this.radioButtonLanguageKorean.Checked = true; else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) this.radioButtonLanguageGerman.Checked = true; + else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Japanese) + this.radioButtonLanguageJap.Checked = true; else this.radioButtonLanguageKorean.Checked = true; @@ -365,7 +399,7 @@ namespace INT63DC_2C.Forms this.ParentForm.SystemConfig.IsEachNG = false; // 모터 - if (this.rbAcMotor.Checked == true) + if (this.radioButtonAcMotor.Checked == true) this.ParentForm.SystemConfig.MotorSelect = 0; else this.ParentForm.SystemConfig.MotorSelect = 1; @@ -387,6 +421,8 @@ namespace INT63DC_2C.Forms this.ParentForm.SystemConfig.Language = DataStore.LanguageID.Czech; else if (this.radioButtonLanguageGerman.Checked == true) this.ParentForm.SystemConfig.Language = DataStore.LanguageID.German; + else if (this.radioButtonLanguageJap.Checked == true) + this.ParentForm.SystemConfig.Language = DataStore.LanguageID.Japanese; else this.ParentForm.SystemConfig.Language = DataStore.LanguageID.Korean; diff --git a/INT63DC_2C/Forms/FormFactoryInitialize.cs b/INT63DC_2C/Forms/FormFactoryInitialize.cs index 1303754..1258f8f 100644 --- a/INT63DC_2C/Forms/FormFactoryInitialize.cs +++ b/INT63DC_2C/Forms/FormFactoryInitialize.cs @@ -38,42 +38,52 @@ namespace INT63DC_2C.Forms #region Method private void InitializeDesign() { - - if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Korean) + switch (this.ParentForm.SystemConfig.Language) { + case DataStore.LanguageID.Korean: + break; + case DataStore.LanguageID.English: + #region English + this.labelTitle.Text = "Initialization"; - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.English) - { - this.labelTitle.Text = "Initialization"; + this.labelResetWait.Text = "Wait a minute..."; + this.labelResetRestart.Text = "Turn the power off and back on"; + #endregion + break; + case DataStore.LanguageID.Chinese: + #region Chinese + this.labelTitle.Text = "回复出厂设置"; - this.labelResetWait.Text = "Wait a minute..."; - this.labelResetRestart.Text = "Turn the power off and back on"; - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Chinese) - { - this.labelTitle.Text = "回复出厂设置"; + this.labelResetWait.Text = "请稍等..."; + this.labelResetRestart.Text = "关掉电源,然后在打开电源"; + #endregion + break; + case DataStore.LanguageID.Czech: + #region Czech + this.labelTitle.Text = "Tovární nastavení"; - this.labelResetWait.Text = "请稍等..."; - this.labelResetRestart.Text = "关掉电源,然后在打开电源"; - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.Czech) - { - this.labelTitle.Text = "Tovární nastavení"; + this.labelResetWait.Text = "Vyčkejte..."; + this.labelResetRestart.Text = "Nejprve zařízení vypněte a pak opět zapněte."; + #endregion + break; + case DataStore.LanguageID.German: + #region German + this.labelTitle.Text = "Werkseinstellung"; - this.labelResetWait.Text = "Vyčkejte..."; - this.labelResetRestart.Text = "Nejprve zařízení vypněte a pak opět zapněte."; - } - else if (this.ParentForm.SystemConfig.Language == DataStore.LanguageID.German) - { - this.labelTitle.Text = "Werkseinstellung"; - - this.labelResetWait.Text = "Initialisierung wird ausgeführt"; - this.labelResetRestart.Text = "Mit dem Hauptschalter aus- und einschalten"; - } - else - { + this.labelResetWait.Text = "Initialisierung wird ausgeführt"; + this.labelResetRestart.Text = "Mit dem Hauptschalter aus- und einschalten"; + #endregion + break; + case DataStore.LanguageID.Japanese: + #region Japanese + this.labelTitle.Text = "初期化"; + this.labelResetWait.Text = "初期化中..."; + this.labelResetRestart.Text = "電源をOFFにしてから電源をONにする"; + #endregion + break; + default: + break; } } diff --git a/INT63DC_2C/Forms/FormIOTest.Designer.cs b/INT63DC_2C/Forms/FormIOTest.Designer.cs index bc2f8f8..ff0f16d 100644 --- a/INT63DC_2C/Forms/FormIOTest.Designer.cs +++ b/INT63DC_2C/Forms/FormIOTest.Designer.cs @@ -245,7 +245,7 @@ this.smartGroupBox1.RoundRadius = 5; this.smartGroupBox1.Size = new System.Drawing.Size(612, 581); this.smartGroupBox1.TabIndex = 243; - this.smartGroupBox1.Text = "OUTPUT 1"; + this.smartGroupBox1.Text = "OUTPUT"; this.smartGroupBox1.TextColor = System.Drawing.Color.Black; // // buttonOutput40 diff --git a/INT63DC_2C/Forms/FormIOTest.cs b/INT63DC_2C/Forms/FormIOTest.cs index f7360f5..2488107 100644 --- a/INT63DC_2C/Forms/FormIOTest.cs +++ b/INT63DC_2C/Forms/FormIOTest.cs @@ -22,6 +22,9 @@ namespace INT63DC_2C.Forms private Color ColorIOStatusOn; private Color ColorIOStatusOff; + private string Text_Out; + private string Text_In; + private Collection