| | |
| | | } |
| | | try |
| | | { |
| | | deviceFunctionList.OrderByDescending(o => o.usageCount).ToList(); |
| | | deviceFunctionList = deviceFunctionList.OrderByDescending(o => o.usageCount).ToList(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | |
| | | } |
| | | else |
| | | { |
| | | MainPage.Log($"deviceType:{localFunction.spk} local:{localFunction.modifyTime} server:{newFunction.modifyTime}"); |
| | | i++; |
| | | if (localFunction.modifyTime != newFunction.modifyTime) |
| | | { |
| | | MainPage.Log($"local:{localFunction.modifyTime}\r\n server:{newFunction.modifyTime}"); |
| | | localFunction.name = newFunction.name; |
| | | localFunction.collect = newFunction.collect; |
| | | localFunction.modifyTime = newFunction.modifyTime; |
| | |
| | | { |
| | | if (DriverLayer.Control.Ins.IsRemote) |
| | | { |
| | | var functionIds = new List<string>(); |
| | | var page = new List<string>(); |
| | | int count = 0; |
| | | |
| | | foreach (var function in GetDeviceFunctionList()) |
| | | { |
| | | functionIds.Add(function.deviceId); |
| | | page.Add(function.deviceId); |
| | | count++; |
| | | if (count > 9) |
| | | { |
| | | DriverLayer.Control.Ins.SendApiReadCommand(page); |
| | | page.Clear(); |
| | | } |
| | | } |
| | | DriverLayer.Control.Ins.SendApiReadCommand(functionIds); |
| | | DriverLayer.Control.Ins.SendApiReadCommand(page); |
| | | } |
| | | else |
| | | { |
| | |
| | | case FunctionAttributeKey.Percent: |
| | | text = Language.StringByID(StringId.PercentAdjustment); |
| | | break; |
| | | case FunctionAttributeKey.FadeTime: |
| | | text = Language.StringByID(StringId.FadeSpeed); |
| | | break; |
| | | } |
| | | return text; |
| | | } |