| | |
| | | Height = Application.GetRealHeight (60), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = SkinStyle.Current.TextColor1, |
| | | Text = "ALL", |
| | | Text = timerTemp.RoomName, |
| | | }; |
| | | roomContenView.AddChidren (btnRoomChoose); |
| | | |
| | |
| | | string id = ""; |
| | | if (!isEdit) { |
| | | var jObject = JObject.Parse (revertObj.Data.ToString ()); |
| | | id = jObject ["id"].ToString (); |
| | | id = jObject ["id"].ToString (); |
| | | timerTemp.id = id; |
| | | } |
| | | this.RemoveFromParent (); |
| | | action (timerTemp); |
| | | |
| | | |
| | | |
| | | } else if (revertObj.Code == "10107") { |
| | | new Alert ("", "Timer name already exists.", "Close").Show (); |
| | | } else { |
| | | //提示错误 |
| | | SmartHome.Method method = new SmartHome.Method (); |
| | | if (revertObj.Data != null) { |
| | | method.ShowGetTimerListErrorInfo (revertObj.Data.ToString ()); |
| | | } |
| | | IMessageCommon.Current.ShowErrorInfoAlter (revertObj.Code); |
| | | |
| | | } |
| | | }); |
| | | } catch (Exception ex) { |