JLChen
2020-02-20 965290476c027deb96891cde1095d9a100581a6b
Crabtree/SmartHome/UI/SimpleControl/Phone/Guide/GuideAddResidence.cs
@@ -219,12 +219,19 @@
                    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 { }
        }
@@ -249,6 +256,7 @@
        void AccountLogout ()
        {
            try {
                this.RemoveFromParent ();
                MainPage.LoginUser.LastTime = DateTime.Now.AddDays (-30);
                MainPage.LoginUser.SaveUserInfo ();
                new AccountLogin ().Show ();
@@ -605,7 +613,7 @@
                                      Language.StringByID (R.MyInternationalizationString.Close)).Show ();
                            //this.RemoveFromParent ();
                            CommonPage.IsRemote = false;
                            EquipmentPublicClass.CheckLinkRemote (2);
                            EquipmentPublicClass.CheckLinkRemote (UserConfig.Instance.internetStatus);
                        }
                        if (bNeedCheckAddRoom) {
                            CheckIfNeedAddRoom ();