| | |
| | | UserConfig.Instance.CurrentRegion = UserConfig.Instance.HomeLists [0]; |
| | | } |
| | | } |
| | | |
| | | try { |
| | | if (IsNeedGoToGuideAddGatewayView) { |
| | | IsNeedGoToGuideAddGatewayView = false; |
| | | if (UserConfig.Instance.CurrentRegion.IsOthreShare) { |
| | | //提示没有分享住宅的权限 |
| | | new Alert ("", ErrorCode.InsufficientAuthority, "Close").Show (); |
| | | return; |
| | | } |
| | | |
| | | GotoGuideAddGatewayView (UserConfig.Instance.CurrentRegion); |
| | | |
| | | } |
| | | } catch { } |
| | | |
| | | } |
| | | |
| | |
| | | void AccountLogout () |
| | | { |
| | | try { |
| | | this.RemoveFromParent (); |
| | | MainPage.LoginUser.LastTime = DateTime.Now.AddDays (-30); |
| | | MainPage.LoginUser.SaveUserInfo (); |
| | | new AccountLogin ().Show (); |
| | |
| | | Language.StringByID (R.MyInternationalizationString.Close)).Show (); |
| | | //this.RemoveFromParent (); |
| | | CommonPage.IsRemote = false; |
| | | EquipmentPublicClass.CheckLinkRemote (2); |
| | | EquipmentPublicClass.CheckLinkRemote (UserConfig.Instance.internetStatus); |
| | | } |
| | | if (bNeedCheckAddRoom) { |
| | | CheckIfNeedAddRoom (); |