| | |
| | | } |
| | | LoadFunctionRow(onOffStatus); |
| | | |
| | | if (sceneFunction.localFunction.spk == SPK.LightRGB) |
| | | if (sceneFunction.localFunction.spk == SPK.LightRGB || sceneFunction.localFunction.spk == SPK.GroupControl) |
| | | { |
| | | var colorfulStatus = sceneFunction.status.Find((obj) => obj.key == FunctionAttributeKey.Colorful); |
| | | if (colorfulStatus != null) |
| | |
| | | |
| | | btnConfrim.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | if (sceneFunction.localFunction.spk == SPK.GroupControl) { } |
| | | else |
| | | { |
| | | if (isOnStatus) |
| | | { |
| | | if (isColorful) |
| | |
| | | } |
| | | else |
| | | { |
| | | if (isColorful) { } else { } |
| | | sceneFunction.status.Clear(); |
| | | sceneFunction.status.Add(new SceneFunctionStatus() { key = FunctionAttributeKey.OnOff, value = "off" }); |
| | | } |
| | | |
| | | } |
| | | var temp = scene.functions.Find((obj) => obj.sid == sceneFunction.sid); |
| | | |
| | | if (temp != null) |
| | |
| | | { |
| | | if (view.Tag.ToString() != FunctionAttributeKey.OnOff) |
| | | { |
| | | if (isColorful) |
| | | if (isColorful && sceneFunction.localFunction.spk == SPK.LightRGB) |
| | | { |
| | | if(view.Tag.ToString() != FunctionAttributeKey.Colorful) |
| | | { |