| | |
| | | } |
| | | view.clickBtn.MouseDownEventHandler += (sender, e) => |
| | | { |
| | | //UserView.HomePage.Instance.ScrollEnabled = true;//恢复左滑 |
| | | action(); |
| | | RemoveFromParent(); |
| | | }; |
| | |
| | | { |
| | | var deviceinof = Method.GetCommonDevice(conditions["MacAddr"], conditions["Epoint"]); |
| | | selecteddevice.deviceNameBtn.Visible = true; |
| | | selecteddevice.deviceNameBtn.Text = deviceinof.DeviceEpointName; |
| | | selecteddevice.deviceNameBtn.Text = LocalDevice.Current.GetDeviceEpointName(deviceinof); |
| | | selecteddevice.regionNameBtn.Visible = true; |
| | | Method.RoomNmae(selecteddevice.regionNameBtn, deviceinof); |
| | | selecteddevice.edit.Tag = i; |
| | |
| | | { |
| | | if (Common.Logic.CurrentLogic.Accounts[a]["UserId"] == conditions["AttriButeData2"]) |
| | | { |
| | | selecteddevice.selecetddevicestateBtn.Text = Common.Logic.CurrentLogic.Accounts[a]["Account"]; |
| | | selecteddevice.selecetddevicestateBtn.Text = Common.Logic.CurrentLogic.Accounts[a]["AccountName"]; |
| | | break; |
| | | } |
| | | } |
| | |
| | | alert.ConfirmClickEvent += () => |
| | | { |
| | | Common.Logic.CurrentLogic.Conditions.Remove(conditions); |
| | | var lockLogicCommunalPage = new LockLogicCommunalPage(); |
| | | UserView.HomePage.Instance.AddChidren(lockLogicCommunalPage); |
| | | UserView.HomePage.Instance.PageIndex += 1; |
| | | lockLogicCommunalPage.Show(() => { }); |
| | | selecteddevice.selecetdFrameLayout.RemoveFromParent(); |
| | | //var lockLogicCommunalPage = new LockLogicCommunalPage(); |
| | | //UserView.HomePage.Instance.AddChidren(lockLogicCommunalPage); |
| | | //UserView.HomePage.Instance.PageIndex += 1; |
| | | //lockLogicCommunalPage.Show(() => { }); |
| | | }; |
| | | }; |
| | | |
| | |
| | | { |
| | | |
| | | var deviceinof = Method.GetCommonDevice(actions["DeviceAddr"].ToString(), actions["Epoint"].ToString()); |
| | | name = deviceinof.DeviceEpointName; |
| | | name =LocalDevice.Current.GetDeviceEpointName(deviceinof); |
| | | actiondevice.regionNameBtn.Visible = true; |
| | | Method.RoomNmae(actiondevice.regionNameBtn, deviceinof); |
| | | |
| | |
| | | } |
| | | break; |
| | | case 2: |
| | | {
|
| | | actiondevice.edit.Visible = false;//隐藏编辑按钮(场景不需要编辑) |
| | | { |
| | | actiondevice.edit.Visible = false;//隐藏编辑按钮(场景不需要编辑)
|
| | | //在本地查找该场景;
|
| | | var sceneinof = UserCenter.HdlSceneLogic.Current.GetSceneUIBySceneId(Convert.ToInt32(actions["DeviceAddr"].ToString())); |
| | | //本地没有存在; |
| | |
| | | alert.ConfirmClickEvent += () => |
| | | { |
| | | Common.Logic.CurrentLogic.Actions.Remove(actions); |
| | | var lockLogicCommunalPage = new LockLogicCommunalPage(); |
| | | UserView.HomePage.Instance.AddChidren(lockLogicCommunalPage); |
| | | UserView.HomePage.Instance.PageIndex += 1; |
| | | lockLogicCommunalPage.Show(() => { }); |
| | | actiondevice.selecetdFrameLayout.RemoveFromParent(); |
| | | //var lockLogicCommunalPage = new LockLogicCommunalPage(); |
| | | //UserView.HomePage.Instance.AddChidren(lockLogicCommunalPage); |
| | | //UserView.HomePage.Instance.PageIndex += 1; |
| | | //lockLogicCommunalPage.Show(() => { }); |
| | | }; |
| | | }; |
| | | |
| | |
| | | Method.Push(middle); |
| | | #endregion |
| | | |
| | | |
| | | saveBtn.clickviewBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | var name = logicTextBox.Text.Trim(); |
| | |
| | | } |
| | | public void AddCondition(int value) |
| | | { |
| | | Common.Logic.CurrentLogic.LogicName = logicTextBox.Text.Trim(); |
| | | var addCondition = new AddCondition(); |
| | | addCondition.conditionsIndex = value; |
| | | UserView.HomePage.Instance.AddChidren(addCondition); |
| | | UserView.HomePage.Instance.PageIndex += 1; |
| | | addCondition.Show(); |
| | | |
| | | } |
| | | } |
| | | } |