| | |
| | | //------------------------------------------------------------------------------ |
| | | // <auto-generated> |
| | | // This code was generated by a tool. |
| | | // Runtime Version:4.0.30319.42000 |
| | | // |
| | | // Changes to this file may cause incorrect behavior and will be lost if |
| | | // the code is regenerated. |
| | |
| | | { |
| | | |
| | | |
| | | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "12.2.8.165")] |
| | | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "13.2.2.120")] |
| | | public partial class Resource |
| | | { |
| | | |
| | |
| | | |
| | | static void Packet_ReceiveEvent (byte subnetID, byte deviceID, Command command, byte [] usefullBytes) |
| | | { |
| | | #if DEBUG |
| | | string ssc = $"{command.ToString()} : " + subnetID + "," + deviceID + ","; |
| | | foreach (var bin in usefullBytes) { |
| | | ssc += bin + ","; |
| | | } |
| | | Utlis.WriteLine (ssc); |
| | | #endif |
| | | |
| | | try { |
| | | List<byte> ButtonBkeyModelList = new List<byte> (); |
| | | switch (command) { |
| | |
| | | etAccount.Text = "464027401@qq.com"; |
| | | etAccount.Text = "460649739@qq.com"; |
| | | etAccount.Text = "1489771324@qq.com"; |
| | | //etAccount.Text = "jai.panghal2201@gmail.com"; |
| | | etAccount.Text = "balamanthiragiri@gmail.com"; |
| | | //etAccount.Text = "avinavrai.we@gmail.com"; |
| | | #endif |
| | | |
| | |
| | | //etPasswrod.Text = "123456"; |
| | | etPasswrod.Text = "123456"; |
| | | etPasswrod.Text = "kkkkkk333"; |
| | | etPasswrod.Text = "Hdl1985."; |
| | | etPasswrod.Text = "Bala@1314"; |
| | | //etPasswrod.Text = "Mavi@2789"; |
| | | #endif |
| | | passwrodView.AddChidren (etPasswrod); |
| | |
| | | // SmartHome.MqttCommon.DisConnectRemote("UserBakeupFileDetailedInformation"); |
| | | //} |
| | | this.RemoveFromParent (); |
| | | UserMiddle.Init (true, true); |
| | | UserMiddle.Init (true, true,false); |
| | | EquipmentPublicClass.CheckLinkRemote (UserConfig.Instance.internetStatus); |
| | | new Alert (Language.StringByID (R.MyInternationalizationString.Tip), Language.StringByID (R.MyInternationalizationString.RestoreFileIsSuccessfull), |
| | | Language.StringByID (R.MyInternationalizationString.Close)).Show (); |
| | |
| | | { |
| | | for (int j = 0; j < Timer.deviceList.Count; j++) { |
| | | var cloudsDevice = Timer.deviceList [j]; |
| | | if (common.SubnetID == cloudsDevice.bus.SubnetID && |
| | | common.DeviceID == cloudsDevice.bus.DeviceID && |
| | | common.LoopID == cloudsDevice.bus.LoopId |
| | | ) { |
| | | return cloudsDevice; |
| | | try { |
| | | if (common.SubnetID == cloudsDevice.bus.SubnetID && |
| | | common.DeviceID == cloudsDevice.bus.DeviceID && |
| | | common.LoopID == cloudsDevice.bus.LoopId |
| | | ) { |
| | | return cloudsDevice; |
| | | } |
| | | }catch(Exception ex) { |
| | | return null; |
| | | } |
| | | } |
| | | return null; |
| | |
| | | /// </summary> |
| | | /// <param name="isGuide">是否Guide</param> |
| | | /// <param name="bFromLogin">是否来自登录界面</param> |
| | | public static void Init (bool isGuide = false, bool bFromLogin = false) |
| | | public static void Init (bool isGuide = false, bool bFromLogin = false,bool logout = true) |
| | | { |
| | | if (MainPage.LoginUser == null) |
| | | MainPage.LoginUser = Newtonsoft.Json.JsonConvert.DeserializeObject<UserInfo> (System.Text.Encoding.UTF8.GetString (Shared.IO.FileUtils.ReadFile (UserInfo.GlobalRegisterFile))); |
| | |
| | | |
| | | UserHomePage.FrameLayoutMain.AddChidren (guidePageView); |
| | | var guide = new GuideAddResidence (); |
| | | guide.IsHideBack = true; |
| | | guide.IsHideBack = logout; |
| | | guidePageView.AddChidren (guide); |
| | | |
| | | guide.ShowHomeView (true); |