| | |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | TextID = MyInternationalizationString.custompush, |
| | | IsBold = true, |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | | |
| | |
| | | }; |
| | | this.AddChidren(middle); |
| | | |
| | | var textBox = new EditText |
| | | var textBox = new EditTextView//EditText |
| | | { |
| | | Width = Application.GetRealWidth(1080), |
| | | Height = Application.GetRealHeight(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextAlignment = TextAlignment.TopLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | BackgroundColor = ZigbeeColor.Current.LogicBlankBackgroundColor, |
| | | Text = Common.Logic.CurrentLogic.LogicCustomPushText, |
| | | TextSize = 14, |
| | | }; |
| | | middle.AddChidren(textBox); |
| | | textBox.HideSoftInput(); |
| | | |
| | | var btnsave = new Button |
| | | { |
| | |
| | | middle.AddChidren(btnsave); |
| | | btnsave.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | Common.Logic.CurrentLogic.LogicCustomPushText = textBox.Text.Trim(); |
| | | if (string.IsNullOrEmpty(Common.Logic.CurrentLogic.LogicCustomPushText)) |
| | | { |
| | | var alert = new UserCenter.ShowMsgControl(UserCenter.ShowMsgType.Normal, |
| | | Language.StringByID(MyInternationalizationString.tiptextnull), |
| | | Language.StringByID(MyInternationalizationString.confrim)); |
| | | alert.Show(); |
| | | return; |
| | | } |
| | | if (Common.Logic.CurrentLogic.LogicId != 0) |
| | | { |
| | | ///只改推送内容; |
| | | Send.LogicControlSwitch(Common.Logic.CurrentLogic); |
| | | } |
| | | else { |
| | | Send.AddModifyLogic(Common.Logic.CurrentLogic); |
| | | Send.Data("添加/更新", "/App/HomeLogicConfig", "POST"); |
| | | } |
| | | RemoveFromParent(); |
| | | |