JLChen
2021-01-11 5a5a2b696866f947b6025d26c3302e8ffef46435
Crabtree/SmartHome/UI/SimpleControl/Phone/Schedule/AddSchedule.cs
@@ -125,7 +125,7 @@
                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);
@@ -570,14 +570,14 @@
                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 编辑的时候也提示重复名字
@@ -684,7 +684,7 @@
                        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 {