| | |
| | | TextSize = 15, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = "时效性常开设置", |
| | | // Text = "时效性常开设置", |
| | | TextID=MyInternationalizationString.timeSetSone, |
| | | }; |
| | | modeFl.AddChidren(modeTextBtn); |
| | | ///下一级菜单图标控件 |
| | |
| | | UnSelectedImagePath = "ZigeeLogic/next.png", |
| | | }; |
| | | modeFl.AddChidren(nextIconBtn); |
| | | |
| | | var clickBtn = new Button |
| | | { |
| | | Y = Application.GetRealHeight(478), |
| | | X = Application.GetRealWidth(58), |
| | | Height = Application.GetRealHeight(138), |
| | | Width = Application.GetRealWidth(1022), |
| | | }; |
| | | modeFl.AddChidren(clickBtn); |
| | | |
| | | |
| | | clickBtn.MouseUpEventHandler += async (sender, e) => |
| | | { |
| | | var d = await SkipView.LockAddModifyLogic(12, Send.CurrentDoorLock); |
| | | }; |
| | | } |
| | | |
| | | #endregion |
| | |
| | | TextSize = 24, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = "常开自动化", |
| | | //Text = "常开自动化", |
| | | TextID = MyInternationalizationString.openAutomationSone, |
| | | }; |
| | | addLogicfL.AddChidren(addTextBtn); |
| | | ///添加自动化图标的控件 |
| | |
| | | addLogicfL.AddChidren(addIconBtn); |
| | | addIconBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | ZigBee.Device.DoorLock doorLock = null; |
| | | if (doorLock == null) |
| | | { |
| | | ///防止抛异常
|
| | | doorLock = new ZigBee.Device.DoorLock(); |
| | | } |
| | | Send.CurrentDoorLock = doorLock; |
| | | Common.Logic.LogicDviceList.Clear(); |
| | | if (Common.Logic.LogicDviceList.Count == 0) |
| | | { |
| | | Common.Logic.LogicDviceList.AddRange(LocalDevice.Current.listAllDevice.ToArray()); |
| | | } |
| | | |
| | | //读取系统当前时间:时-分 |
| | | //读取系统当前时间:时-分 |
| | | var h = DateTime.Now.ToString("HH"); |
| | |
| | | timeConditionsInfo.Add("StartMin", m); |
| | | Dictionary<string, object> actionsInfo = new Dictionary<string, object>(); |
| | | actionsInfo.Add("LinkType", 8); |
| | | actionsInfo.Add("DeviceAddr", doorLock.DeviceAddr); |
| | | actionsInfo.Add("DeviceAddr", Send.CurrentDoorLock.DeviceAddr); |
| | | actionsInfo.Add("Epoint", "200"); |
| | | actionsInfo.Add("PassData", "055704010113");//默认门锁常关 |
| | | //new一个新逻辑对象; |