설정 창에서 [저장] 시, 'KA 인디케이터'와 'Alarm PLC'의 동일한 통신포트 설정 방지 추가
This commit is contained in:
@@ -44,7 +44,7 @@ namespace vmsnet
|
||||
cmb_plcport.Items.Clear();
|
||||
cmb_plcport.Items.AddRange(ports);
|
||||
|
||||
/* 작성자: 이재웅, 작성일: 2024-11-27, 작성내용: KA 인디게이터용 PC에서 인가된 통신포트 표시 */
|
||||
/* 작성자: 이재웅, 작성일: 2024-11-27, 작성내용: KA 인디케이터용 PC에서 인가된 통신포트들만 표시 */
|
||||
cmbIndiport.Items.Clear();
|
||||
cmbIndiport.Items.AddRange(ports);
|
||||
|
||||
@@ -311,11 +311,15 @@ namespace vmsnet
|
||||
this.bs_normal.EndEdit();
|
||||
this.bs_win.EndEdit();
|
||||
|
||||
|
||||
if (cmbIndiport.Text.Trim() == cmb_plcport.Text.Trim())
|
||||
{
|
||||
UTIL.MsgE("「KA 인디게이터」와 「Alarm PLC」의 통신포트는\n\n동일하게 설정할 수 없습니다.");
|
||||
cmbIndiport.Focus();
|
||||
return;
|
||||
if (cmbIndiport.Text.Trim().Length > 0 && cmb_plcport.Text.Trim().Length > 0)
|
||||
{ // 동일한 통신포트 방지
|
||||
UTIL.MsgE("「KA 인디케이터」와 「Alarm PLC」의 통신포트는\n\n동일하게 설정할 수 없습니다.");
|
||||
cmbIndiport.Focus();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (nudPri1.Value < 1 || nudPri2.Value < 1)
|
||||
|
||||
Reference in New Issue
Block a user