| | |
| | | TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, |
| | | }; |
| | | logicRowlayout.AddRightView(edit); |
| | | if (logic.LogicType==2) { |
| | | edit.TextID=MyInternationalizationString.look; |
| | | } |
| | | edit.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | Common.Logic.CurrentLogic = logic; |
| | |
| | | } |
| | | |
| | | ///<summary> |
| | | /// 是否存在S-one逻辑方法(true为存在) |
| | | /// s-one门锁是否存在自动化的方法(true为存在) |
| | | /// </summary> |
| | | public static async System.Threading.Tasks.Task<bool> Exist(int valueInt=2) |
| | | { |
| | |
| | | } |
| | | |
| | | ///<summary> |
| | | /// s-one门锁确认取消发送的方法 |
| | | /// s-one门锁确认取消(使满足条件所有逻辑失能一次)发送的方法 |
| | | /// </summary> |
| | | public static async void LockCloseLogic(CommonDevice common) |
| | | { |
| | |
| | | int m= int.Parse(DateTime.Now.ToString("mm")); |
| | | //转化为多少分钟; |
| | | int s = h * 60 + m; |
| | | List<Common.Logic> logicList = new List<Common.Logic>(); |
| | | var logicList = new List<Common.Logic>(); |
| | | logicList.Clear(); |
| | | var Idlist = await Send.GetLogicId(2); |
| | | if (Idlist.Count != 0) |