| | |
| | | { |
| | | 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.iconBtn.UnSelectedImagePath ="ZigeeLogic/sensor13.png"; |
| | |
| | | alert.ConfirmClickEvent += () => |
| | | { |
| | | Common.Logic.CurrentLogic.Conditions.Remove(conditions); |
| | | var templatePage = new TemplatePage(); |
| | | UserView.HomePage.Instance.AddChidren(templatePage); |
| | | UserView.HomePage.Instance.PageIndex += 1; |
| | | templatePage.Show(); |
| | | selecteddevice.selecetdFrameLayout.RemoveFromParent(); |
| | | //var templatePage = new TemplatePage(); |
| | | //UserView.HomePage.Instance.AddChidren(templatePage); |
| | | //UserView.HomePage.Instance.PageIndex += 1; |
| | | //templatePage.Show(); |
| | | }; |
| | | }; |
| | | } |
| | |
| | | { |
| | | var deviceinof = Method.GetCommonDevice(actions["DeviceAddr"].ToString(), actions["Epoint"].ToString()); |
| | | actiondevice.deviceNameBtn.Visible = true; |
| | | actiondevice.deviceNameBtn.Text = deviceinof.DeviceEpointName; |
| | | actiondevice.deviceNameBtn.Text = LocalDevice.Current.GetDeviceEpointName(deviceinof); |
| | | actiondevice.regionNameBtn.Visible = true; |
| | | Method.RoomNmae(actiondevice.regionNameBtn, deviceinof); |
| | | switch (deviceinof.Type) |
| | |
| | | alert.ConfirmClickEvent += () => |
| | | { |
| | | Common.Logic.CurrentLogic.Actions.Remove(actions); |
| | | var templatePage = new TemplatePage(); |
| | | UserView.HomePage.Instance.AddChidren(templatePage); |
| | | UserView.HomePage.Instance.PageIndex += 1; |
| | | templatePage.Show(); |
| | | actiondevice.selecetdFrameLayout.RemoveFromParent(); |
| | | //var templatePage = new TemplatePage(); |
| | | //UserView.HomePage.Instance.AddChidren(templatePage); |
| | | //UserView.HomePage.Instance.PageIndex += 1; |
| | | //templatePage.Show(); |
| | | }; |
| | | }; |
| | | |
| | |
| | | |
| | | #region -----每天 设置周期----- |
| | | |
| | | var fraline1 = new FrameLayout |
| | | var fraHeight = new FrameLayout |
| | | { |
| | | Height = Application.GetRealHeight(30), |
| | | }; |
| | | middle.AddChidren(fraline1); |
| | | middle.AddChidren(fraHeight); |
| | | |
| | | |
| | | LogicView.Addview weekview = new LogicView.Addview(); |