| | |
| | | } |
| | | |
| | | btnIcon.UnSelectedImagePath = $"FunctionIcon/Icon/{function.IconName}.png"; |
| | | |
| | | if(function.spk == SPK.GroupControl) |
| | | { |
| | | btnIcon.UnSelectedImagePath = $"FunctionIcon/Icon/lightswitch.png"; |
| | | } |
| | | if (SPK.CurtainSpkList().Contains(function.spk)) |
| | | {//窗帘没有开关按钮 |
| | | CurtainFragment(); |
| | |
| | | } |
| | | else if (function.spk == SPK.VideoDoorLock) |
| | | { |
| | | btnIcon.UnSelectedImagePath = UI2.FuntionControlView.VideoDoorLock.CommonMethod.Current.GetVideoDoorLockIcon(Comerom.function); |
| | | btnIcon.UnSelectedImagePath =UI2.FuntionControlView.VideoDoorLock.CommonMethod.Current.GetVideoDoorLockIcon(UI2.FuntionControlView.VideoDoorLock.CommonMethod.Comerom.function); |
| | | } |
| | | else if(function.spk == SPK.GroupControl) { } |
| | | else if (function.spk == SPK.HvacCac) |
| | | { |
| | | var btnHumidityIcon = new Button() |
| | |
| | | }; |
| | | bodyDiv.AddChidren(btnOffline); |
| | | } |
| | | //排序 |
| | | //btnIcon.MouseLongEventHandler = (sender, e) => { |
| | | // OrderEvent(); |
| | | //}; |
| | | //btnName.MouseLongEventHandler = (sender, e) => { |
| | | // OrderEvent(); |
| | | //}; |
| | | //btnFromFloor.MouseLongEventHandler = (sender, e) => { |
| | | // OrderEvent(); |
| | | //}; |
| | | //bodyDiv.MouseLongEventHandler = (sender, e) => { |
| | | // OrderEvent(); |
| | | //}; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 排序事件 |
| | | /// </summary> |
| | | public Action OrderEvent; |
| | | |
| | | /// <summary> |
| | | /// 加载音乐功能控制卡片 |
| | | /// </summary> |
| | | void MusicFragment() |