| | |
| | | alert.ConfirmClickEvent += () => |
| | | { |
| | | Common.Logic.CurrentLogic.Conditions.Remove(conditions); |
| | | selecteddevice.selecetdFrameLayout.RemoveFromParent(); |
| | | |
| | | var exist = Common.Logic.CurrentLogic.Conditions.Find((obj) => obj["Type"] == "7"); |
| | | if (exist == null) |
| | | { |
| | | //如果没有开启GPS服务,打开服务并且保存状态在本地; |
| | | Application.StopGPSLocationService(); |
| | | Send.SaveLocalFile("GPS_File", "0"); |
| | | //如果找不到地理位置作为条件的话,关闭GPS服务(减少耗电) |
| | | if (Send.It_Exist == "1") |
| | | { |
| | | Application.StopGPSLocationService(); |
| | | Send.SaveLocalFile("GPS_File", "0"); |
| | | } |
| | | } |
| | | selecteddevice.selecetdFrameLayout.RemoveFromParent(); |
| | | //var logicCommunalPage = new LogicCommunalPage(); |
| | | //UserView.HomePage.Instance.AddChidren(logicCommunalPage); |
| | | //UserView.HomePage.Instance.PageIndex += 1; |