| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using service.hdlcontrol.com_push; |
| | | |
| | | namespace Shared.SimpleControl.Phone |
| | | { |
| | |
| | | Button btnUserIcon = new Button () { |
| | | X = Application.GetRealWidth (27), |
| | | Width = Application.GetRealWidth (96), |
| | | Height = Application.GetRealHeight (96), |
| | | Height = Application.GetRealWidth (96), |
| | | Gravity = Gravity.CenterVertical, |
| | | Radius = 5, |
| | | BorderColor = SkinStyle.Current.Transparent, |
| | |
| | | Room.Lists.Clear (); |
| | | new AccountLogin (MainPage.LoginUser.AccountString, "").Show (); |
| | | |
| | | System.Threading.Tasks.Task.Run (() => { |
| | | WebServicePush webPush = new WebServicePush (); |
| | | webPush.DeleteToken_Push (UserConfig.Instance.tokenID); |
| | | if (string.IsNullOrEmpty (UserConfig.Instance.RemoteModeFile)) |
| | | return; |
| | | }); |
| | | //System.Threading.Tasks.Task.Run (() => { |
| | | // WebServicePush webPush = new WebServicePush (); |
| | | // webPush.DeleteToken_Push (UserConfig.Instance.tokenID); |
| | | // if (string.IsNullOrEmpty (UserConfig.Instance.RemoteModeFile)) |
| | | // return; |
| | | //}); |
| | | CommonPage.IsRemote = false; |
| | | } |
| | | }; |
| | |
| | | tipView.AddChidren (btnTipMsg); |
| | | |
| | | var bottomView = new FrameLayout () { |
| | | Y = btnTipMsg.Bottom, |
| | | Y = tipView.Height - Application.GetRealHeight (120), |
| | | Height = Application.GetRealHeight (120), |
| | | BackgroundColor = SkinStyle.Current.MainColor, |
| | | }; |
| | |
| | | new AccountLogin (MainPage.LoginUser.AccountString, "").Show (); |
| | | this.RemoveFromParent (); |
| | | SharedMethod.SharedMethod.CurPageLayout = null; |
| | | System.Threading.Tasks.Task.Run (() => { |
| | | var webPush = new WebServicePush (); |
| | | webPush.DeleteToken_Push (UserConfig.Instance.tokenID); |
| | | }); |
| | | CommonPage.IsRemote = false; |
| | | //System.Threading.Tasks.Task.Run (() => { |
| | | // var webPush = new WebServicePush (); |
| | | // webPush.DeleteToken_Push (UserConfig.Instance.tokenID); |
| | | //}); |
| | | //2020-02-17 退出登录,断开远程连接 |
| | | if (CommonPage.IsRemote) { |
| | | Utlis.ShowAppLinkStatus (AppLinkStatus.WiFiOffline); |
| | | CommonPage.IsRemote = false; |
| | | SmartHome.MqttCommon.DisConnectRemote ("Logout"); |
| | | } |
| | | //CommonPage.IsRemote = false; |
| | | }; |
| | | |
| | | btnNo.MouseUpEventHandler += (sdd, ff) => { |
| | |
| | | Room.Lists.Clear (); |
| | | new AccountLogin (MainPage.LoginUser.AccountString, "").Show (); |
| | | this.RemoveFromParent (); |
| | | System.Threading.Tasks.Task.Run (() => { |
| | | var webPush = new WebServicePush (); |
| | | webPush.DeleteToken_Push (UserConfig.Instance.tokenID); |
| | | }); |
| | | CommonPage.IsRemote = false; |
| | | //System.Threading.Tasks.Task.Run (() => { |
| | | // var webPush = new WebServicePush (); |
| | | // webPush.DeleteToken_Push (UserConfig.Instance.tokenID); |
| | | //}); |
| | | //CommonPage.IsRemote = false; |
| | | //2020-02-17 退出登录,断开远程连接 |
| | | if (CommonPage.IsRemote) { |
| | | Utlis.ShowAppLinkStatus (AppLinkStatus.WiFiOffline); |
| | | CommonPage.IsRemote = false; |
| | | SmartHome.MqttCommon.DisConnectRemote ("Logout"); |
| | | } |
| | | }; |
| | | |
| | | alertDialog.Show (); |