using System; using Shared; using HDL_ON.UI.CSS; namespace HDL_ON.UI { /// /// 过户确认提醒界面 /// public class TransferConfirmPage : FrameLayout { /// /// /// FrameLayout bodyView; public TransferConfirmPage() { bodyView = this; } /// /// /// public void LoadPage() { BackgroundColor = CSS_Color.MainBackgroundColor; new TopViewDiv(bodyView, Language.StringByID(StringId.Transfer)).LoadTopView(); #region 头像 FrameLayout headView = new FrameLayout() { Y = Application.GetRealHeight(72), Height = Application.GetRealHeight(132), }; bodyView.AddChidren(headView); ImageView myHeadImage = new ImageView() { X = Application.GetRealWidth(48), Y = Application.GetRealHeight(96), Width = Application.GetRealWidth(84), Height = Application.GetRealWidth(84), Radius = (uint)Application.GetRealWidth(42), ImagePath = UserInfo.Current.headImagePagePath, Gravity = Gravity.CenterVertical, }; headView.AddChidren(myHeadImage); ImageView transferImage = new ImageView() { X = Application.GetRealWidth(144), Y = Application.GetRealHeight(96), Width = Application.GetRealWidth(84), Height = Application.GetRealWidth(32), ImagePath = "PersonalCenter/Transfer.png", Gravity = Gravity.Center, }; headView.AddChidren(transferImage); ImageView otherHeadImage = new ImageView() { X = Application.GetRealWidth(231), Y = Application.GetRealHeight(96), Width = Application.GetRealWidth(101), Height = Application.GetRealWidth(101), ImagePath = "PersonalCenter/Head.png", Gravity = Gravity.CenterVertical, }; headView.AddChidren(otherHeadImage); #endregion var btnTip = new Button() { Y = headView.Bottom, X = Application.GetRealWidth(16), Width = Application.GetRealWidth(343), Height = Application.GetRealHeight(22), TextAlignment = TextAlignment.Center, TextColor = CSS_Color.FirstLevelTitleColor, TextSize = CSS_FontSize.SubheadingFontSize, Text = "您的住宅将过户给其他HDL账号", }; bodyView.AddChidren(btnTip); //请注意 var btnPleaseNote = new Button() { Y = btnTip.Bottom + Application.GetRealHeight(38), X = Application.GetRealWidth(16), Width = Application.GetRealWidth(343), Height = Application.GetRealHeight(17), TextAlignment = TextAlignment.CenterLeft, TextColor = CSS_Color.FirstLevelTitleColor, TextSize = CSS_FontSize.PromptFontSize_FirstLevel, Text = "请注意:", }; bodyView.AddChidren(btnPleaseNote); //请注意的内容 var btnPleaseNoteStr = new Button() { Y = btnPleaseNote.Bottom + Application.GetRealHeight(8), X = Application.GetRealWidth(16), Width = Application.GetRealWidth(343), Height = Application.GetRealHeight(170), TextAlignment = TextAlignment.TopLeft, TextColor = CSS_Color.TextualColor, TextSize = CSS_FontSize.PromptFontSize_FirstLevel, IsMoreLines = true, Text = "1.该住宅您的数据(云端数据)将全部转移给新的户主 \n\n2.过户后,原有的成员将自动解绑该住宅 \n\n3.新户主账号为有效的HDL账号 \n\n4.接收方账号与转移方账号不可为同一个账号 (绑定的其他登录)", }; bodyView.AddChidren(btnPleaseNoteStr); // var btnConfirm = new ConfirmButton() { Y = Application.GetRealHeight(456), Text = "确认过户", }; bodyView.AddChidren(btnConfirm); btnConfirm.MouseUpEventHandler = (sender, e) => { //Utlis.ShowTip("暂不支持"); var skipPage = new TransferInputPage(); MainPage.BasePageView.AddChidren(skipPage); skipPage.LoadPage(); MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; }; } } }