| | |
| | | X = btnTime.Right + Application.GetRealWidth (190), |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetRealWidth (75), |
| | | Height = Application.GetRealHeight (75), |
| | | Height = Application.GetRealWidth (75), |
| | | UnSelectedImagePath = "CrabtreeAdd/Timer.png", |
| | | }; |
| | | timeView.AddChidren (btnTimeIcon); |
| | |
| | | |
| | | if (btnMonday.IsSelected == false && btnFriday.IsSelected == false && btnThursday.IsSelected == false && btnSunday.IsSelected == false && btnTuesday.IsSelected == false && btnSaturday.IsSelected == false && btnWednesday.IsSelected == false) { |
| | | //new Alert ("", "请选择日期!", "Close").Show (); |
| | | new Alert ("", "Please setting date!", "Close").Show (); |
| | | new Alert ("", "Please select the days.", "Close").Show (); |
| | | return; |
| | | } |
| | | |
| | | string mTimerName = etName.Text.Trim (); |
| | | if (string.IsNullOrEmpty (mTimerName)) { |
| | | //new Alert ("", "请填写定时器名称!", "Close").Show (); |
| | | new Alert ("", "Please set name for the timer!", "Close").Show (); |
| | | new Alert ("", "Please fill the tab Lable name.", "Close").Show (); |
| | | return; |
| | | } |
| | | //else if (listTimer.Find ((obj) => obj.TimerName == timerTemp.TimerName) != null && !isEdit) {//2020-01-09 编辑的时候也提示重复名字 |
| | |
| | | Application.RunOnMainThread (() => { |
| | | if (revertObj == null) { |
| | | new Alert ("", "Unable to save data, please check the network.", "Close").Show (); |
| | | } else if (revertObj.StateCode.ToUpper() == "SUCCESS") { |
| | | } else if (revertObj.StateCode.ToUpper() == StateCode.SUCCESS) { |
| | | this.RemoveFromParent (); |
| | | action (timerTemp); |
| | | } else { |