| | |
| | | topView.AddChidren (ItemButton); |
| | | #endregion |
| | | |
| | | //2020-07-01 |
| | | if (UserConfig.Instance.CurrentRegion != null && !string.IsNullOrEmpty (UserConfig.Instance.CurrentRegion.Name)) { |
| | | NameButton.Text = UserConfig.Instance.CurrentRegion.Name; |
| | | } |
| | | |
| | | EventHandler<MouseEventArgs> addSubaccountHandler = (sender, e) => { |
| | | modifySubaccount (null); |
| | | }; |
| | |
| | | |
| | | VerticalScrolViewLayout contentView = new VerticalScrolViewLayout () { |
| | | Y = topUserMsgView.Bottom, |
| | | Height = Application.GetRealHeight (1136) - topUserMsgView.Bottom, |
| | | Height = Application.GetRealHeight (1136-80) - topUserMsgView.Bottom, |
| | | BackgroundColor = SkinStyle.Current.ViewColor, |
| | | ScrollEnabled = false, |
| | | }; |
| | | AddChidren (contentView); |
| | | |
| | | |
| | | //#region |
| | | ////当前住宅 |
| | | //FrameLayout homeView = new FrameLayout () { |
| | | // Height = Application.GetRealHeight (100), |
| | | // BackgroundColor = SkinStyle.Current.Transparent |
| | | //}; |
| | | //contentView.AddChidren (homeView); |
| | | |
| | | //Button btnHomeText = new Button () { |
| | | // X = Application.GetRealWidth (40), |
| | | // Width = Application.GetRealWidth (600), |
| | | // //TextID = R.MyInternationalizationString.Subaccount, |
| | | // TextAlignment = TextAlignment.CenterLeft, |
| | | // TextColor = SkinStyle.Current.TextColor1, |
| | | //}; |
| | | //homeView.AddChidren (btnHomeText); |
| | | |
| | | //if (UserConfig.Instance.CurrentRegion != null && !string.IsNullOrEmpty (UserConfig.Instance.CurrentRegion.Name)) { |
| | | // btnHomeText.Text = "Current residence: " + UserConfig.Instance.CurrentRegion.Name; |
| | | //} |
| | | //#endregion |
| | | |
| | | FrameLayout subaccountView = new FrameLayout () { |
| | | Height = Application.GetRealHeight (50), |
| | | BackgroundColor = SkinStyle.Current.MainColor |
| | |
| | | |
| | | addSubaccountList (); |
| | | |
| | | addTipView (); |
| | | } |
| | | |
| | | void addTipView () { |
| | | var TipView = new Button () { |
| | | Width = LayoutParams.MatchParent, |
| | | Y = Application.GetRealHeight (Application.DesignHeight - 80), |
| | | Height = Application.GetRealHeight (80), |
| | | BackgroundColor = 0xFFFFFFE0, |
| | | TextSize = 11, |
| | | TextColor = 0xFF1F1F1F, |
| | | TextAlignment = TextAlignment.Center, |
| | | IsMoreLines = true, |
| | | Text = "Manage the member list of the current residence and share it to other accounts. \n Tips: You need to add the registered member account.", |
| | | |
| | | }; |
| | | AddChidren (TipView); |
| | | } |
| | | |
| | | void addSubaccountList () |