陈嘉乐
2020-08-24 fcebedf4555b2d597668006ba21ed47630343da3
ZigbeeApp/Shared/Phone/Device/Logic/AddLogicPage.cs
@@ -7,6 +7,7 @@
using ZigBee.Device;
using Shared.Phone.Device.Logic.LogicView;
namespace Shared.Phone.Device.Logic
{
@@ -18,8 +19,7 @@
        }
        public void Show()
        {
            #region  界面的布局代码
            TopView view = new TopView();
            this.AddChidren(view.TopRowView());
@@ -65,7 +65,6 @@
            timeView.clickviewBtn.MouseUpEventHandler += (sender, e) =>
            {
                TimeView();
            };
            functionView.clickviewBtn.MouseUpEventHandler += (sender, e) =>
@@ -479,8 +478,18 @@
                    accounts.Add("Latitude", latitudW.ToString());
                    accounts.Add("Longitude", longitudeH.ToString());
                    accounts.Add("Radius", mRadius.ToString());
                    if (Send.It_Exist == "0")
                    {
                        //如果没有开启GPS服务,打开服务并且保存状态在本地;
                        //没有打开GPS服务,地理条件用不了;
                        Application.StartGPSLocationService();
                        Send.SaveLocalFile("GPS_File", "1");
                    }
                    LogicIfon.Addaccounts(accounts);
                    LogicIfon.AddLocationconditions(LocationConditionsInfo);
                    var logicCommunalPage = new LogicCommunalPage();
                    UserView.HomePage.Instance.AddChidren(logicCommunalPage);
                    UserView.HomePage.Instance.PageIndex += 1;
@@ -576,6 +585,7 @@
            };
        }
    }
}