|
@@ -162,12 +162,12 @@ namespace MECF.Framework.Common.Device.Bases
|
|
|
|
|
|
private bool _isBuzzerOff;
|
|
|
|
|
|
- public SignalTowerBase( ) : base( )
|
|
|
+ public SignalTowerBase() : base()
|
|
|
{
|
|
|
IsAutoSetLight = true;
|
|
|
}
|
|
|
|
|
|
- public SignalTowerBase(string module, string name):base(module, name, name, name)
|
|
|
+ public SignalTowerBase(string module, string name) : base(module, name, name, name)
|
|
|
{
|
|
|
IsAutoSetLight = true;
|
|
|
}
|
|
@@ -205,14 +205,13 @@ namespace MECF.Framework.Common.Device.Bases
|
|
|
|
|
|
foreach (var signalLightBase in _lights)
|
|
|
{
|
|
|
- if (signalLightBase.Value != null)
|
|
|
- {
|
|
|
- if (IsBuzzer(signalLightBase.Key) && !IsAutoSetLight)
|
|
|
- {
|
|
|
- continue;
|
|
|
- }
|
|
|
- signalLightBase.Value.Monitor();
|
|
|
- }
|
|
|
+ if (signalLightBase.Value == null)
|
|
|
+ continue;
|
|
|
+
|
|
|
+ if (IsBuzzer(signalLightBase.Key) && !IsAutoSetLight)
|
|
|
+ continue;
|
|
|
+
|
|
|
+ signalLightBase.Value.Monitor();
|
|
|
}
|
|
|
}
|
|
|
catch (Exception ex)
|
|
@@ -301,7 +300,7 @@ namespace MECF.Framework.Common.Device.Bases
|
|
|
if (configTypes.Contains(lightType))
|
|
|
configTypes.Remove(lightType);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -336,6 +335,7 @@ namespace MECF.Framework.Common.Device.Bases
|
|
|
if (conditionValue == null)
|
|
|
continue;
|
|
|
|
|
|
+
|
|
|
if (!(conditionValue is bool))
|
|
|
continue;
|
|
|
|
|
@@ -355,23 +355,23 @@ namespace MECF.Framework.Common.Device.Bases
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if(lightStateValue.ContainsKey(LightType.Red) && (lightStateValue[LightType.Red] == TowerLightStatus.Blinking || lightStateValue[LightType.Red] == TowerLightStatus.On))
|
|
|
- {
|
|
|
- if (lightStateValue.ContainsKey(LightType.Green))
|
|
|
- {
|
|
|
- lightStateValue[LightType.Green] = TowerLightStatus.Off;
|
|
|
- }
|
|
|
-
|
|
|
- if (lightStateValue.ContainsKey(LightType.Yellow))
|
|
|
- {
|
|
|
- lightStateValue[LightType.Yellow] = TowerLightStatus.Off;
|
|
|
- }
|
|
|
-
|
|
|
- if (lightStateValue.ContainsKey(LightType.Blue))
|
|
|
- {
|
|
|
- lightStateValue[LightType.Blue] = TowerLightStatus.Off;
|
|
|
- }
|
|
|
- }
|
|
|
+ //if (lightStateValue.ContainsKey(LightType.Red) && (lightStateValue[LightType.Red] == TowerLightStatus.Blinking || lightStateValue[LightType.Red] == TowerLightStatus.On))
|
|
|
+ //{
|
|
|
+ // if (lightStateValue.ContainsKey(LightType.Green))
|
|
|
+ // {
|
|
|
+ // lightStateValue[LightType.Green] = TowerLightStatus.Off;
|
|
|
+ // }
|
|
|
+
|
|
|
+ // if (lightStateValue.ContainsKey(LightType.Yellow))
|
|
|
+ // {
|
|
|
+ // lightStateValue[LightType.Yellow] = TowerLightStatus.Off;
|
|
|
+ // }
|
|
|
+
|
|
|
+ // if (lightStateValue.ContainsKey(LightType.Blue))
|
|
|
+ // {
|
|
|
+ // lightStateValue[LightType.Blue] = TowerLightStatus.Off;
|
|
|
+ // }
|
|
|
+ //}
|
|
|
}
|
|
|
}
|
|
|
|