| | |
| | | using ZigBee.Device; |
| | | using Shared.Phone.Device.Logic.LogicView; |
| | | |
| | | |
| | | namespace Shared.Phone.Device.Logic |
| | | { |
| | | |
| | |
| | | } |
| | | public void Show() |
| | | { |
| | | |
| | | |
| | | #region 界面的布局代码 |
| | | TopView view = new TopView(); |
| | | this.AddChidren(view.TopRowView()); |
| | |
| | | var middle = new FrameLayout |
| | | { |
| | | Y = view.topRowLayout.Bottom, |
| | | Height = Application.GetRealHeight(1920 - 184), |
| | | Height = Application.GetRealHeight(Method.H - 184), |
| | | BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor, |
| | | }; |
| | | this.AddChidren(middle); |
| | |
| | | |
| | | timeView.clickviewBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | TimeView(); |
| | | TimeView(); |
| | | }; |
| | | functionView.clickviewBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | |
| | | UserView.HomePage.Instance.PageIndex += 1; |
| | | roomAndDeviceView.IfType = LogicView.IfString.Condition_Logic; |
| | | roomAndDeviceView.Show(Language.StringByID(MyInternationalizationString.devicestate)); |
| | | |
| | | }; |
| | | securityView.clickviewBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | |
| | | accounts.Add("Latitude", latitudW.ToString()); |
| | | accounts.Add("Longitude", longitudeH.ToString()); |
| | | accounts.Add("Radius", mRadius.ToString()); |
| | | |
| | | if (Send.It_Exist == "0") |
| | | { |
| | | //如果没有开启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; |
| | | logicCommunalPage.Show(() => { }); |
| | | }, strname, true, latitude, longitude, r); |
| | | }, strname, Language.StringByID(R.MyInternationalizationString.uSave), true, latitude, longitude, r); |
| | | }; |
| | | } |
| | | |
| | |
| | | /// </summary> |
| | | void TimeView() |
| | | { |
| | | |
| | | UserView.HomePage.Instance.ScrollEnabled = false; |
| | | Dictionary<string, string> SecurityConditionsInfo = new Dictionary<string, string>(); |
| | | #region ------界面布局部分 |
| | |
| | | }; |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | } |