| | |
| | | |
| | | //public static Button LinkStatusTip = new Button () { |
| | | // Height = Application.GetRealHeight (36), |
| | | // Width = Application.GetRealWidth (640), |
| | | // Width = Application.GetRealWidth (Application.DesignWidth), |
| | | // BackgroundColor = SkinStyle.Current.LinkStatusTipColor |
| | | //}; |
| | | |
| | |
| | | IsShowPoint = false, |
| | | }; |
| | | public static FrameLayout FavoriteBodyView = new FrameLayout () { |
| | | Width = Application.GetRealWidth (640), |
| | | Height = Application.GetRealHeight (1136) |
| | | //Width = Application.GetRealWidth (Application.DesignWidth), |
| | | //Height = Application.GetRealHeight (Application.DesignHeight) |
| | | }; |
| | | public static UserRoom FavoriteRoom = new UserRoom () { |
| | | Width = Application.GetRealWidth (640), |
| | | Height = Application.GetRealHeight (1136 - 90) |
| | | //Width = Application.GetRealWidth (Application.DesignWidth), |
| | | Height = Application.GetRealHeight (Application.DesignHeight - userMenuItemHeight) |
| | | }; |
| | | |
| | | public static PageLayout DevicePageView = new PageLayout () { |
| | | IsShowPoint = false, |
| | | }; |
| | | public static FrameLayout DeviceBodyView = new FrameLayout () { |
| | | Width = Application.GetRealWidth (640), |
| | | Height = Application.GetRealHeight (1136) |
| | | //Width = Application.GetRealWidth (Application.DesignWidth), |
| | | Height = Application.GetRealHeight (Application.DesignHeight) |
| | | }; |
| | | public static VerticalScrolViewLayout DeviceView = new VerticalScrolViewLayout () { |
| | | Y = Application.GetRealHeight (126), |
| | | Width = Application.GetRealWidth (640), |
| | | Height = Application.GetRealHeight (1136 - 126 - 90), |
| | | //Width = Application.GetRealWidth (Application.DesignWidth), |
| | | Height = Application.GetRealHeight (Application.DesignHeight - 126 - userMenuItemHeight), |
| | | }; |
| | | |
| | | public static PageLayout RoomPageView = new PageLayout () { |
| | | IsShowPoint = false, |
| | | }; |
| | | public static FrameLayout RoomBodyView = new FrameLayout () { |
| | | Width = Application.GetRealWidth (640), |
| | | Height = Application.GetRealHeight (1136) |
| | | Width = Application.GetRealWidth (Application.DesignWidth), |
| | | Height = Application.GetRealHeight (Application.DesignHeight) |
| | | }; |
| | | |
| | | public static PageLayout SettingPageView = new PageLayout () { |
| | |
| | | }; |
| | | public static FrameLayout SettingBodyView = new FrameLayout () { |
| | | BackgroundColor = SkinStyle.Current.MainColor, |
| | | Height = Application.GetRealHeight (1136) |
| | | Height = Application.GetRealHeight (Application.DesignHeight) |
| | | }; |
| | | public static VerticalScrolViewLayout SettingView = new VerticalScrolViewLayout () { |
| | | Y = Application.GetRealHeight (126), |
| | | Width = Application.GetRealWidth (640), |
| | | Height = Application.GetRealHeight (1136 - 126 - 90 - 90), |
| | | Width = Application.GetRealWidth (Application.DesignWidth), |
| | | Height = Application.GetRealHeight (Application.DesignHeight - 126 - userMenuItemHeight - 90), |
| | | BackgroundColor = SkinStyle.Current.ViewColor, |
| | | //ScrollEnabled = true |
| | | }; |
| | | public static Button btnVersion = new Button () { |
| | | Y = Application.GetRealHeight (1136 - 90 - 90), |
| | | Width = Application.GetRealWidth (640), |
| | | Y = Application.GetRealHeight (Application.DesignHeight - userMenuItemHeight - 90), |
| | | Width = Application.GetRealWidth (Application.DesignWidth), |
| | | Height = Application.GetRealHeight (90), |
| | | Text = Language.StringByID (R.MyInternationalizationString.Version) + " : " + MainPage.RequestVersion, |
| | | TextColor = SkinStyle.Current.TextColor1, |
| | |
| | | }; |
| | | |
| | | public static FrameLayout UserMenuItem = new FrameLayout () { |
| | | Y = Application.GetRealHeight (Application.DesignHeight - 90), |
| | | Height = Application.GetRealHeight (95), |
| | | Y = Application.GetRealHeight (Application.DesignHeight - userMenuItemHeight), |
| | | Height = Application.GetRealHeight (userMenuItemHeight+5), |
| | | BackgroundColor = SkinStyle.Current.MainColor |
| | | }; |
| | | |
| | |
| | | //2020-01-14 登录成功后,刷新一次当前住宅网关 |
| | | GetNowHomeGatewayAfterLoginSuccess (); |
| | | } else if (!string.IsNullOrEmpty (revertObj.StateCode)) { |
| | | if (revertObj.StateCode != ErrorCode.NetworkError && revertObj.StateCode != "Data Exception") { |
| | | MainPage.LoginUser.LastTime = DateTime.Now.AddDays (-30); |
| | | MainPage.LoginUser.SaveUserInfo (); |
| | | new AccountLogin ().Show (); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | } catch { } finally { |