| | |
| | | { |
| | | public AddControl() |
| | | { |
| | | Tag = "Pir"; |
| | | Tag = "PirView"; |
| | | } |
| | | public void Show(Control control) |
| | | { |
| | |
| | | view.RemoveFromParent(); |
| | | } |
| | | } |
| | | //MainPage.BasePageView.RemoveViewByTag("Pir"); |
| | | AddControlComplete addControlComplete = new AddControlComplete(); |
| | | MainPage.BasePageView.AddChidren(addControlComplete); |
| | | addControlComplete.Show(control,false); |
| | |
| | | loading.Hide(); |
| | | if (responsePackNew != null && responsePackNew.Code == "0" && responsePackNew.Data.ToString() != "") |
| | | { |
| | | ///这里:监听MTTP推送下来主题,才知道是否添加成功 |
| | | var buttonObj = control.status.Find((c) => c.value == obj.value); |
| | | if (buttonObj != null) |
| | | { |
| | |
| | | } |
| | | else { |
| | | Method method = new Method(); |
| | | method.ErrorShow(responsePackNew); |
| | | method.ErrorShow(responsePackNew,""); |
| | | } |
| | | |
| | | }); |