old mode 100755
new mode 100644
| | |
| | | /// <summary> |
| | | /// 自动化 |
| | | /// </summary> |
| | | public async void ShowAutotion() |
| | | private async void ShowAutotion() |
| | | {
|
| | |
|
| | | functionSceneAutoBodyView.BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor;
|
| | |
| | | CommonPage.Loading.Start(); |
| | | if (Common.Logic.LogicList.Count == 0) |
| | | { |
| | | //var Idlist = await Logic.Send.GetLogicId(); |
| | | //if (Idlist.Count != 0) |
| | | //{ |
| | | // foreach (var LogicId in Idlist) |
| | | // { |
| | | // var logic = await Logic.Send.GetLogic(LogicId); |
| | | // if (logic != null) |
| | | // { |
| | | // Common.Logic.LogicList.Add(logic); |
| | | // } |
| | | // } |
| | | //} |
| | | var Idlist = await Logic.Send.GetLogicId(); |
| | | var Idlist = await Logic.Send.GetLogicId(0); |
| | | if (Idlist.Count != 0) |
| | | { |
| | | var listlogic = await Logic.Send.ReadList(Idlist.Count); |
| | | for (int i = 0; i < Idlist.Count; i++) |
| | | var listlogic = await Logic.Send.ReadList(Idlist.Count,0); |
| | | //foreach可能集合已被修改,枚举操作可能不会执行,可能出现崩溃(建议for)。 |
| | | for (int j = 0; j < listlogic.Count; j++) |
| | | { |
| | | var LogicId = Idlist[i]; |
| | | //foreach可能集合已被修改,枚举操作可能不会执行,可能出现崩溃(建议for)。 |
| | | for (int j = 0; j < listlogic.Count; j++) |
| | | var logic = listlogic[j]; |
| | | if (logic.LogicType != 0) |
| | | { |
| | | var logic = listlogic[j]; |
| | | if (logic.LogicId == LogicId) |
| | | { |
| | | Common.Logic.LogicList.Add(logic); |
| | | } |
| | | continue; |
| | | } |
| | | Common.Logic.LogicList.Add(logic); |
| | | } |
| | | } |
| | | } |
| | |
| | | /// 自动化列表界面 |
| | | /// </summary> |
| | | /// <param name="refresview">Refresview.</param> |
| | | public async void Automationview(VerticalScrolViewLayout refresview) |
| | | private async void Automationview(VerticalScrolViewLayout refresview) |
| | | { |
| | | refresview.RemoveAll(); |
| | | foreach (var logic in Common.Logic.LogicList) |
| | |
| | | |
| | | |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | #region ◆ 控制状态_________________________ |
| | | |
| | |
| | | } |
| | | } |
| | | } |
| | | #endregion |
| | | } |
| | | } |