| | |
| | | //日出/日落/正午点击事件 |
| | | timeSpecialView.btnClick.MouseUpEventHandler += (sen, e) => |
| | | { |
| | | if (string.IsNullOrEmpty( Entity.DB_ResidenceData.Instance.CurrentRegion.homeAddress))//.longitude == 0 && Entity.DB_ResidenceData.Instance.CurrentRegion.latitude == 0) |
| | | { |
| | | new PublicAssmebly().TipMsg(StringId.tip, StringId.GatewayLocationInformationIsNotConfigured); |
| | | return; |
| | | } |
| | | |
| | | //if (string.IsNullOrEmpty( Entity.DB_ResidenceData.Instance.CurrentRegion.homeAddress))//.longitude == 0 && Entity.DB_ResidenceData.Instance.CurrentRegion.latitude == 0) |
| | | //{ |
| | | // new PublicAssmebly().TipMsg(StringId.tip, StringId.GatewayLocationInformationIsNotConfigured); |
| | | // return; |
| | | //} |
| | | SpeciaTime speciaTime = new SpeciaTime(); |
| | | MainPage.BasePageView.AddChidren(speciaTime); |
| | | speciaTime.Show(); |
| | |
| | | new LogicView.TipPopView().TipBox(StringId.tip, StringId.unlikeTime); |
| | | return; |
| | | } |
| | | if (int.Parse(btnStartTimeText.Tag.ToString()) > int.Parse(btnEndTimeText.Tag.ToString())) |
| | | { |
| | | //提示:开始时间不能大于结束时间。 |
| | | new LogicView.TipPopView().TipBox(StringId.tip, StringId.startTimeLessThanEndTime); |
| | | return; |
| | | } |
| | | //if (int.Parse(btnStartTimeText.Tag.ToString()) > int.Parse(btnEndTimeText.Tag.ToString())) |
| | | //{ |
| | | // //提示:开始时间不能大于结束时间。 |
| | | // new LogicView.TipPopView().TipBox(StringId.tip, StringId.startTimeLessThanEndTime); |
| | | // return; |
| | | //} |
| | | |
| | | Input inputTime = new Input(); |
| | | inputTime.sid = LogicMethod.Current.NewSid(); |