| | |
| | | ///下一步的点击事件 |
| | | saveBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | if (control.status.Count>29) { |
| | | ///超出30个红外宝内存满了会出现异常 |
| | | new PirMethod().ErrorShow(null, "添加按钮超出30个"); |
| | | return; |
| | | } |
| | | |
| | | var texts = editText.Text.Trim(); |
| | | if (string.IsNullOrEmpty(editText.Text)) |
| | | { |
| | |
| | | //移除添加按钮界面 |
| | | this.RemoveFromParent(); |
| | | //移除之前可能存在的界面 |
| | | Method.RemoveView("AddControl"); |
| | | PirMethod.RemoveView("AddControl"); |
| | | //加载数据界面 |
| | | AddControl addControl = new AddControl(); |
| | | MainPage.BasePageView.AddChidren(addControl); |
| | |
| | | else |
| | | { |
| | | replication.RemView(); |
| | | Method method = new Method(); |
| | | PirMethod method = new PirMethod(); |
| | | method.ErrorShow(null,"添加失败"); |
| | | } |
| | | |
| | |
| | | public override void RemoveFromParent() |
| | | { |
| | | //刷新指定界面 |
| | | Method.RefreshView("PirMain"); |
| | | PirMethod.RefreshView("PirMain"); |
| | | base.RemoveFromParent(); |
| | | } |
| | | } |