| | |
| | | |
| | | if (sceneFunction.localFunction.spk == SPK.LightRGB || sceneFunction.localFunction.spk == SPK.GroupControl) |
| | | { |
| | | //var colorfulStatus = sceneFunction.status.Find((obj) => obj.key == FunctionAttributeKey.Colorful); |
| | | //if (colorfulStatus != null) |
| | | //{ |
| | | // isColorful = true; |
| | | // LoadColorfulRow(colorfulStatus); |
| | | // isColorful = colorfulStatus.value == "on"; |
| | | //} |
| | | var colorfulStatus = sceneFunction.status.Find((obj) => obj.key == FunctionAttributeKey.Colorful); |
| | | if (colorfulStatus != null) |
| | | { |
| | | isColorful = true; |
| | | LoadColorfulRow(colorfulStatus); |
| | | isColorful = colorfulStatus.value == "on"; |
| | | } |
| | | } |
| | | foreach (var attr in sceneFunction.status) |
| | | { |
| | |
| | | { |
| | | btnFunctionText.Text = song.name; |
| | | sceneStatus.value = song.name; |
| | | //追加控制属性 |
| | | //追加属性 |
| | | var oldList = new List<SceneFunctionStatus>(); |
| | | for (int i = 0; i < sceneFunction.status.Count; i++) |
| | | { |
| | |
| | | } |
| | | else if (status.key == FunctionAttributeKey.Url) |
| | | { |
| | | //存在url就一起发送过去 |
| | | //存在url就一起发过去 |
| | | if (!string.IsNullOrEmpty(song.url)) |
| | | { |
| | | //控制需要(界面不需要显示) |