| | |
| | | var middle = new FrameLayout |
| | | { |
| | | Y = view.topRowLayout.Bottom, |
| | | Height = Application.GetRealHeight(1920 - 184), |
| | | Height = Application.GetRealHeight(Method.H - 184), |
| | | BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor, |
| | | }; |
| | | this.AddChidren(middle); |
| | |
| | | { |
| | | textBtn.Text = (50 - Common.Logic.CurrentLogic.LogicCustomPushText.Length).ToString(); |
| | | } |
| | | textBox.TextChangeEventHandler += (sender, e) =>
|
| | | textBox.TextChangeEventHandler += (sender, e) => |
| | | { |
| | | var leng = e.Length; |
| | | if (leng > 50) |
| | |
| | | Common.Logic.CurrentLogic.LogicCustomPushText = textBox.Text.Trim(); |
| | | if (string.IsNullOrEmpty(Common.Logic.CurrentLogic.LogicCustomPushText)) |
| | | { |
| | | var alert = new UserCenter.ShowMsgControl(UserCenter.ShowMsgType.Normal, |
| | | var alert = new ShowMsgControl(ShowMsgType.Normal, |
| | | Language.StringByID(MyInternationalizationString.tiptextnull), |
| | | Language.StringByID(MyInternationalizationString.confrim)); |
| | | alert.Show(); |
| | |
| | | }; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |