| | |
| | | { |
| | | Application.RunOnMainThread(() => { |
| | | var temp = device.attributes.Find((sta) => sta.key == FunctionAttributeKey.ActionStatus); |
| | | |
| | | if (temp != null) |
| | | { |
| | | if (temp.state == "fall") //跌倒 |
| | |
| | | btnSuctionView.IsSelected = true; |
| | | } |
| | | } |
| | | |
| | | else |
| | | { |
| | | temp = device.attributes.Find((sta) => sta.key == FunctionAttributeKey.PeopleStatus); |
| | | if (temp != null) |
| | | { |
| | | if (temp.state == "true") |
| | | { |
| | | btnIcon.IsSelected = true; |
| | | btnSuctionView.TextID = StringId.Someone; |
| | | btnSuctionView.IsSelected = true; |
| | | } |
| | | else |
| | | { |
| | | btnIcon.IsSelected = false; |
| | | btnSuctionView.TextID = StringId.SensorNormalState; |
| | | btnSuctionView.IsSelected = false; |
| | | } |
| | | //增加实验室模式反馈 |
| | | var tempStatus = device.attributes.Find((sta) => sta.key == FunctionAttributeKey.TargetStatus); |
| | | if(tempStatus != null) |
| | | { |
| | | if(tempStatus.state == "4") |
| | | { |
| | | btnIcon.UnSelectedImagePath = "FunctionIcon/ArmSensor/SomeoneFellBgIcon.png"; |
| | | btnSuctionView.TextID = StringId.SomeoneFell; |
| | | btnSuctionView.IsSelected = true; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | }); |
| | | } |
| | | |