| | |
| | | custompushview.iconBtn.Visible = true; |
| | | custompushview.iconBtn.UnSelectedImagePath = "ZigeeLogic/next.png"; |
| | | custompushview.titleBtn.TextID = MyInternationalizationString.custompush; |
| | | custompushview.lineBtn.BackgroundColor = ZigbeeColor.Current.LogicBlankBackgroundColor; |
| | | middle.AddChidren(custompushview.AddDeviceView()); |
| | | |
| | | EventHandler<MouseEventArgs> customclick = (sender, e) => |
| | |
| | | LogicView.IfString.Tag = true; |
| | | custompushview.frameLayout.Height = Application.GetRealHeight(160); |
| | | Common.Logic.CurrentLogic.LogicIsCustomPushText = 1; |
| | | pushview.lineBtn.BackgroundColor = ZigbeeColor.Current.LogicRowLayoutLineColor; |
| | | |
| | | } |
| | | else |
| | |
| | | LogicView.IfString.Tag = false; |
| | | custompushview.frameLayout.Height = Application.GetRealHeight(0); |
| | | Common.Logic.CurrentLogic.LogicIsCustomPushText = 0; |
| | | pushview.lineBtn.BackgroundColor = ZigbeeColor.Current.LogicBlankBackgroundColor; |
| | | } |
| | | Send.Zj(LogicView.IfString.Tag, Common.Logic.CurrentLogic); |
| | | }; |
| | |
| | | LogicView.IfString.Tag = false; |
| | | pushview.switchBtn.IsSelected = false; |
| | | custompushview.frameLayout.Height = Application.GetRealHeight(0); |
| | | pushview.lineBtn.BackgroundColor = ZigbeeColor.Current.LogicBlankBackgroundColor; |
| | | } |
| | | else |
| | | { |
| | | LogicView.IfString.Tag = true; |
| | | pushview.switchBtn.IsSelected = true; |
| | | custompushview.frameLayout.Height = Application.GetRealHeight(160); |
| | | pushview.lineBtn.BackgroundColor = ZigbeeColor.Current.LogicRowLayoutLineColor; |
| | | } |
| | | } |
| | | /// <summary> |