| | |
| | | foreach (var function in list) |
| | | { |
| | | //音乐模块有主从关系,需要特殊处理 |
| | | if (SPK.MusicSpkList().Contains( function.spk)) |
| | | { |
| | | continue; |
| | | } |
| | | else |
| | | //if (SPK.MusicSpkList().Contains( function.spk)) |
| | | //{ |
| | | // continue; |
| | | //} |
| | | //else |
| | | { |
| | | if (!function.collect) |
| | | continue; |
| | |
| | | { |
| | | btnIcon.UnSelectedImagePath = "FunctionIcon/Music/MusicIcon.png"; |
| | | btnIcon.SelectedImagePath = "FunctionIcon/Music/MusicOnIcon.png"; |
| | | btnCollection.Visible = false; |
| | | //btnCollection.Visible = false; |
| | | Button btnPower; |
| | | btnPower = new Button() |
| | | { |
| | |
| | | btnName.MouseUpEventHandler = skipControlPageEvent; |
| | | btnIcon.MouseUpEventHandler = skipControlPageEvent; |
| | | btnState.MouseUpEventHandler = skipControlPageEvent; |
| | | //不需要更新状态的动能列表 |
| | | //不需要更新状态的功能列表 |
| | | if(!SPK.NotStatusSpkList.Contains(function.spk) || function.spk != SPK.IpCam_Imou) |
| | | { |
| | | UpdataFunctionStates(function); |