- 메인 Icon 정상적으로 Enable 안되는 버그 수정

master V3.1.3
DESKTOP-999R8N3\CJY 2025-02-24 14:56:55 +09:00
parent 74c271922f
commit 219a9fe483
6 changed files with 94 additions and 86 deletions

View File

@ -931,7 +931,7 @@ namespace ITC81DB_2.Controls
this.buttonTestSend.Enabled = true; this.buttonTestSend.Enabled = true;
this.SaveComboBox(this.comboBoxSerialBaudRate.SelectedIndex, this.comboBoxSerialMode.SelectedIndex); this.SaveComboBox(this.comboBoxSerialBaudRate.SelectedIndex, this.comboBoxSerialMode.SelectedIndex);
this.ParentForm.ParentForm.ChildFormMainDisplay.UpdateIconDisplay(); this.ParentForm.ParentForm.ChildFormMainDisplay.UpdateIcomDisplay();
this.ButtonAddOnDisplay(); this.ButtonAddOnDisplay();
this.buttonSave.Enabled = false; this.buttonSave.Enabled = false;

View File

@ -63,7 +63,7 @@ namespace ITC81DB_2.Controls
private void DefaultSetting() private void DefaultSetting()
{ {
this.labelSerialNo.Text = this.ParentForm.ParentForm.SystemConfig.SerialNumber; this.labelSerialNo.Text = this.ParentForm.ParentForm.SystemConfig.SerialNumber;
this.labelDisplayVer.Text = "3.1.2"; this.labelDisplayVer.Text = "3.1.3";
} }
public void UpdateMainBoardVersionDisplay(string version) public void UpdateMainBoardVersionDisplay(string version)

View File

@ -438,6 +438,93 @@ namespace ITC81DB_2.Forms
this.pictureBoxFeedbackEnable.Visible = false; this.pictureBoxFeedbackEnable.Visible = false;
} }
} }
/// <summary>
/// 사용안함(Modbus 유료화 추가되면 사용할 것)
/// </summary>
public void UpdateIconDisplay()
{
int value = 0;
// Icon - COM1
if (this.ParentForm.SystemConfig.SerialCOM1Mode == 0)
{
this.pictureBoxCOM1Enable.Visible = false;
this.pictureBoxCOM1Disable.Visible = true;
}
else
{
if (this.ParentForm.SystemConfig.SerialCOM1Mode == (int)Define.E_CommMode.f5_Modbus && this.ParentForm.SystemConfig.IsModbus == false)
{
this.pictureBoxCOM1Enable.Visible = false;
this.pictureBoxCOM1Disable.Visible = true;
}
else
{
this.pictureBoxCOM1Enable.Visible = true;
this.pictureBoxCOM1Disable.Visible = false;
}
}
// Icon - COM3
if (this.ParentForm.SystemConfig.SerialCOM3Mode == (int)Define.E_CommMode.f0_None)
{
this.pictureBoxCOM3Enable.Visible = false;
this.pictureBoxCOM3Disable.Visible = true;
}
else
{
if (this.ParentForm.SystemConfig.SerialCOM3Mode == (int)Define.E_CommMode.f5_Modbus && this.ParentForm.SystemConfig.IsModbus == false)
{
this.pictureBoxCOM3Enable.Visible = false;
this.pictureBoxCOM3Disable.Visible = true;
}
else
{
this.pictureBoxCOM3Enable.Visible = true;
this.pictureBoxCOM3Disable.Visible = false;
}
}
// Icon - COM3
if (this.ParentForm.SystemConfig.SerialCOM4Mode == 0)
{
this.pictureBoxCOM4Enable.Visible = false;
this.pictureBoxCOM4Disable.Visible = true;
}
else
{
if (this.ParentForm.SystemConfig.SerialCOM4Mode == (int)Define.E_CommMode.f5_Modbus && this.ParentForm.SystemConfig.IsModbus == false)
{
this.pictureBoxCOM4Enable.Visible = false;
this.pictureBoxCOM4Disable.Visible = true;
}
else
{
this.pictureBoxCOM4Enable.Visible = true;
this.pictureBoxCOM4Disable.Visible = false;
}
}
// 옵션보드
try
{
value = int.Parse(this.ParentForm.CurrentSystemParameter9507.OptionBoard);
}
catch
{
value = 0;
}
if (value == 1 && int.Parse(this.ParentForm.CurrentSystemParameter9508.OPT1SamplingCount) != 0) // Feedback
{
this.pictureBoxFeedbackDisable.Visible = false;
this.pictureBoxFeedbackEnable.Visible = true;
}
else
{
this.pictureBoxFeedbackDisable.Visible = true;
this.pictureBoxFeedbackEnable.Visible = false;
}
}
private void UpdateDisplayUser(SystemStatus status) private void UpdateDisplayUser(SystemStatus status)
{ {
string id = "", group = ""; string id = "", group = "";
@ -706,90 +793,6 @@ namespace ITC81DB_2.Forms
this.pictureBoxEthernetDisconnection.Visible = true; this.pictureBoxEthernetDisconnection.Visible = true;
} }
} }
public void UpdateIconDisplay()
{
int value = 0;
// Icon - COM1
if (this.ParentForm.SystemConfig.SerialCOM1Mode == 0)
{
this.pictureBoxCOM1Enable.Visible = false;
this.pictureBoxCOM1Disable.Visible = true;
}
else
{
if (this.ParentForm.SystemConfig.SerialCOM1Mode == 22 && this.ParentForm.SystemConfig.IsModbus == false)
{
this.pictureBoxCOM1Enable.Visible = false;
this.pictureBoxCOM1Disable.Visible = true;
}
else
{
this.pictureBoxCOM1Enable.Visible = true;
this.pictureBoxCOM1Disable.Visible = false;
}
}
// Icon - COM3
if (this.ParentForm.SystemConfig.SerialCOM3Mode == (int)Define.E_CommMode.f0_None)
{
this.pictureBoxCOM3Enable.Visible = false;
this.pictureBoxCOM3Disable.Visible = true;
}
else
{
if (this.ParentForm.SystemConfig.SerialCOM3Mode == 22 && this.ParentForm.SystemConfig.IsModbus == false)
{
this.pictureBoxCOM3Enable.Visible = false;
this.pictureBoxCOM3Disable.Visible = true;
}
else
{
this.pictureBoxCOM3Enable.Visible = true;
this.pictureBoxCOM3Disable.Visible = false;
}
}
// Icon - COM3
if (this.ParentForm.SystemConfig.SerialCOM4Mode == 0)
{
this.pictureBoxCOM4Enable.Visible = false;
this.pictureBoxCOM4Disable.Visible = true;
}
else
{
if (this.ParentForm.SystemConfig.SerialCOM4Mode == 22 && this.ParentForm.SystemConfig.IsModbus == false)
{
this.pictureBoxCOM4Enable.Visible = false;
this.pictureBoxCOM4Disable.Visible = true;
}
else
{
this.pictureBoxCOM4Enable.Visible = true;
this.pictureBoxCOM4Disable.Visible = false;
}
}
// 옵션보드
try
{
value = int.Parse(this.ParentForm.CurrentSystemParameter9507.OptionBoard);
}
catch
{
value = 0;
}
if (value == 1 && int.Parse(this.ParentForm.CurrentSystemParameter9508.OPT1SamplingCount) != 0) // Feedback
{
this.pictureBoxFeedbackDisable.Visible = false;
this.pictureBoxFeedbackEnable.Visible = true;
}
else
{
this.pictureBoxFeedbackDisable.Visible = true;
this.pictureBoxFeedbackEnable.Visible = false;
}
}
public void PopUpWarning(string warning) public void PopUpWarning(string warning)
{ {
this.labelAlarmWindow.Text = warning; this.labelAlarmWindow.Text = warning;

View File

@ -14,6 +14,11 @@
2열 기본형 컨베어 계량기 2열 기본형 컨베어 계량기
*/ */
@ Ver 3.1.3 by CJY
- 2025.02.13
- Ver 3.1.2 Modify
- 메인 Icon 정상적으로 Enable 안되는 버그 수정
@ Ver 3.1.2 by CJY @ Ver 3.1.2 by CJY
- 2024.12.24 - 2024.12.24
- Ver 3.1.1 Modify - Ver 3.1.1 Modify

Binary file not shown.

Binary file not shown.