| | |
| | | case SPK.ClothesHanger: |
| | | vv = ShowFunction.Electric; |
| | | break; |
| | | case SPK.AirFreshJinmao: |
| | | case SPK.AirFreshStandard: |
| | | vv = ShowFunction.FreshAir; |
| | | break; |
| | | } |
| | | UpdataFunctionOnCount(vv, function.spk); |
| | | UpdataCloseAllButton(function); |
| | |
| | | break; |
| | | case ShowFunction.Electric: |
| | | btnText = FunctionList.List.GetElectricals().FindAll((obj) => obj.trait_on_off.curValue.ToString() == "on").Count.ToString(); |
| | | break; |
| | | case ShowFunction.FreshAir: |
| | | btnText = FunctionList.List.GetAirFreshList().FindAll((obj) => obj.trait_on_off.curValue.ToString() == "on").Count.ToString(); |
| | | break; |
| | | } |
| | | if (btn.Tag.ToString() == functionCategory + "_onCount") |
| | |
| | | System.Threading.Thread.Sleep(100); |
| | | } |
| | | break; |
| | | case ShowFunction.FreshAir: |
| | | foreach (var f in FunctionList.List.GetAirFreshList()) |
| | | { |
| | | f.trait_on_off.curValue = onoff; |
| | | Dictionary<string, string> d = new Dictionary<string, string>(); |
| | | d.Add(FunctionAttributeKey.OnOff, f.trait_on_off.curValue.ToString()); |
| | | Control.Ins.SendWriteCommand(f, d); |
| | | System.Threading.Thread.Sleep(100); |
| | | } |
| | | break; |
| | | } |
| | | } |
| | | else |