| | |
| | | { |
| | | #region 窗帘更新 |
| | | var onoffString = updataFunction.GetAttrState(FunctionAttributeKey.OnOff); |
| | | //if (onoffString == "stop") |
| | | //{ |
| | | // return; |
| | | //} |
| | | var percentAttr = updataFunction.GetAttribute(FunctionAttributeKey.Percent); |
| | | if(percentAttr != null) |
| | | { |
| | | onoffString = percentAttr.curValue.ToString() == "0" ? "off" : "on"; |
| | | } |
| | | |
| | | if (onoffString == "stop") |
| | | { |
| | | return; |
| | | } |
| | | var percent = onoffString == "off" ? 0 : 100; |
| | | if (updataFunction.GetAttributes().Contains(FunctionAttributeKey.Percent)) |
| | | { |
| | |
| | | { |
| | | if (scrolView.GetChildren(i).GetType() == typeof(FunctionControlZone)) { |
| | | var fcView = scrolView.GetChildren(i) as FunctionControlZone; |
| | | fcView.UpdataOnline(updataFunction.online); |
| | | fcView.UpdataOnline(updataFunction.isOnline()); |
| | | } |
| | | } |
| | | } |