修改系统颜色

dep_nodyang
nodyang 1 year ago
parent fdc12243dc
commit 2fd7a22c1d

@ -237,10 +237,10 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
SetHslLanternSimple(hslLanternSimpleEntity.HslLanternSimpleM3, MinAnPlc.ReqD3);
SetHslLanternSimple(hslLanternSimpleEntity.HslLanternSimpleM4, MinAnPlc.ReqD4);
SetHslLanternSimple(hslLanternSimpleEntity.HslLanternSimpleReq1, MinAnPlc.Heir1);
SetHslLanternSimple(hslLanternSimpleEntity.HslLanternSimpleReq2, MinAnPlc.Heir2);
SetHslLanternSimple(hslLanternSimpleEntity.HslLanternSimpleReq3, MinAnPlc.Heir3);
SetHslLanternSimple(hslLanternSimpleEntity.HslLanternSimpleReq4, MinAnPlc.Heir4);
SetHslLanternSimpleRequest(hslLanternSimpleEntity.HslLanternSimpleReq1, MinAnPlc.Heir1);
SetHslLanternSimpleRequest(hslLanternSimpleEntity.HslLanternSimpleReq2, MinAnPlc.Heir2);
SetHslLanternSimpleRequest(hslLanternSimpleEntity.HslLanternSimpleReq3, MinAnPlc.Heir3);
SetHslLanternSimpleRequest(hslLanternSimpleEntity.HslLanternSimpleReq4, MinAnPlc.Heir4);
@ -2464,6 +2464,21 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
}
public void SetHslLanternSimpleRequest(HslLanternSimple lanternSimple, bool su)
{
if (su == true)
{
lanternSimple.LanternBackground = Color.SlateBlue;
}
else
{
lanternSimple.LanternBackground = Color.Transparent;
}
}
//HslLanternSimpleEntity
private void FillControlHslLanternAlarm()

Loading…
Cancel
Save