wxr
2023-08-04 20f70e3446df19bf5d0faaae9f7bd58fd0fc4bcc
Crabtree/SmartHome/UI/SimpleControl/Phone/Guide/GuideAddGateway.cs
@@ -309,11 +309,15 @@
                                    bingResideceId += (int)(bingResidenceIdBytes [i] * Math.Pow (256, 3 - i));
                                }
                                if (bingResideceId != UserConfig.Instance.CurrentRegion.RegionID && bingResideceId != 0) {
#if DEBUG
                                    goNext = true;
#else
                                    Application.RunOnMainThread (() => {
                                        if (inThisView) {
                                            new Alert ("", "This gateway has been bound to a residence, please reset it before binding to another residence.", Language.StringByID (R.MyInternationalizationString.Close)).Show ();
                                        }
                                    });
#endif
                                } else {
                                    goNext = true;
                                }
@@ -379,7 +383,7 @@
                    Application.RunOnMainThread (() => {
                        MainPage.Loading.Start ("Searching for gateway...");
                    });
                    #region 搜索设备
#region 搜索设备
                    CommonPage.LocalPhoneFindDevice = true;
                    CommonPage.RandomHigh = (byte)new Random ().Next (255);
                    CommonPage.RandomLow = (byte)new Random ().Next (255);
@@ -434,7 +438,7 @@
                    CommonPage.FindGateway = false;
                    CommonPage.LocalPhoneFindDevice = false;
                    #endregion
#endregion
                } catch (Exception ex) {
                    Console.WriteLine (ex.ToString ());
                } finally {