| | |
| | | SelectedImagePath = "Collection/DefenseStatusIcon.png", |
| | | UnSelectedImagePath = "Collection/DisarmStatusIcon.png" |
| | | }; |
| | | if (DB_ResidenceData.Instance.GatewayType == 1) |
| | | if (DB_ResidenceData.Instance.GatewayType == 1 && !DB_ResidenceData.Instance.CurrentRegion.isOtherShare) |
| | | { |
| | | |
| | | topView.AddChidren(btnSecurityStatus); |
| | |
| | | UnSelectedImagePath = "Collection/MsgIcon.png", |
| | | SelectedImagePath = "Collection/MsgIconTip.png", |
| | | }; |
| | | if(btnSecurityStatus.Parent == null) |
| | | { |
| | | btnMsgIcon.X = Application.GetRealWidth(329); |
| | | } |
| | | topView.AddChidren(btnMsgIcon); |
| | | |
| | | |
| | |
| | | LoadContentView(); |
| | | |
| | | #endregion |
| | | |
| | | #if DEBUG |
| | | btnResidenceName.MouseUpEventHandler = (envent, ee) => { |
| | | MainPage.Log("sss"); |
| | | new System.Threading.Thread(async() => |
| | | { |
| | | await Common.AliyunLog.AliyunLogClient.PostLogs("告警测试", "测试信息测试信息测试信息测试信息测试信息测试信息测试信息测试信息测试信息测试信息测试信息测试信息测试信息"); |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | }; |
| | | #endif |
| | | } |
| | | catch (Exception ex) |
| | | { |