|
|
@@ -28,7 +28,24 @@ namespace BPASmartClient.Device |
|
|
|
private string _mModbusTcpAddress; |
|
|
|
|
|
|
|
|
|
|
|
public string CurrentValue { get { return _mCurrentValue; } set { _mCurrentValue = value; } } |
|
|
|
public string CurrentValue |
|
|
|
{ |
|
|
|
get { return _mCurrentValue; } |
|
|
|
set |
|
|
|
{ |
|
|
|
_mCurrentValue = value; |
|
|
|
if (_mCurrentValue == "False" || _mCurrentValue == "True") |
|
|
|
{ |
|
|
|
if (_mCurrentValue == "True") |
|
|
|
StatusColor = new { r = 51, g = 232, b = 34, a = 1 }; |
|
|
|
else |
|
|
|
StatusColor = new { r = 255, g = 0, b = 0, a = 1 }; |
|
|
|
}else |
|
|
|
StatusColor = new { r = 51, g = 232, b = 34, a = 1 }; |
|
|
|
} |
|
|
|
} |
|
|
|
private string _mCurrentValue; |
|
|
|
|
|
|
|
public object StatusColor { get; set; } |
|
|
|
} |
|
|
|
} |