| | |
| | | }; |
| | | foreach (var f in room.GetRoomFunctions(false)) |
| | | { |
| | | //if(f.spk == SPK.OtherCommon) |
| | | //{ |
| | | // continue; |
| | | //} |
| | | if (f.trait_on_off.curValue.ToString() == "on") |
| | | { |
| | | btn.Visible = true; |
| | |
| | | System.Threading.Thread.Sleep(sleepTime); |
| | | } |
| | | break; |
| | | case ShowFunction.MechanicalArm: |
| | | foreach (var f in FunctionList.List.GetMechanicalArmList()) |
| | | { |
| | | 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(sleepTime); |
| | | } |
| | | break; |
| | | } |
| | | } |
| | | else |
| | |
| | | } |
| | | Control.Ins.SwtichFunctions(onoff == "on", eleList); |
| | | break; |
| | | case ShowFunction.MechanicalArm: |
| | | List<Function> meArmList = new List<Function>(); |
| | | foreach (var f in FunctionList.List.GetMechanicalArmList()) |
| | | { |
| | | meArmList.Add(f); |
| | | } |
| | | Control.Ins.SwtichFunctions(onoff == "on", meArmList); |
| | | break; |
| | | } |
| | | |
| | | |