| | |
| | | |
| | | //不是A网关或者是成员 只允许添加场景隐藏自动化 |
| | | var HideAutoPage = DB_ResidenceData.Instance.CurrentRegion.isOtherShare; |
| | | bool hideSecurity = true; |
| | | //判断是否需要隐藏自动化 |
| | | if (HideAutoPage) |
| | | { |
| | |
| | | var otherWidth = (Application.GetRealWidth(375) - btnAutomationTitle.Width) / 2; |
| | | btnAutomationTitle.X = otherWidth; |
| | | |
| | | |
| | | btnSceneTilte = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(40), |
| | |
| | | }; |
| | | topView.AddChidren(btnSceneTilte); |
| | | |
| | | |
| | | btnSecurityTitle = new Button() |
| | | { |
| | | X = btnAutomationTitle.Right, |
| | |
| | | TextID = StringId.anfang, |
| | | }; |
| | | topView.AddChidren(btnSecurityTitle); |
| | | hideSecurity = false; |
| | | } |
| | | else |
| | | { |
| | |
| | | { |
| | | LoadAutomationPageView(); |
| | | } |
| | | LoadSecurityPageView(); |
| | | if (!hideSecurity) |
| | | { |
| | | LoadSecurityPageView(); |
| | | } |
| | | LoadEventList(); |
| | | |
| | | } |