using System; using Shared.Common; namespace Shared.Phone.Login { public class AccountResetPswResultForm : FrameLayout { public AccountResetPswResultForm() { Tag = "Forgot"; } /// /// Show /// public void Show() { var dialog = new FrameLayout() { BackgroundColor = ZigbeeColor.Current.GXCDailogBackGroundColor }; AddChidren(dialog); var blackBG = new FrameLayout() { Y = Application.GetRealHeight(576), Width = Application.GetRealWidth(827), Height = Application.GetRealHeight(904), Gravity = Gravity.CenterHorizontal, BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor, Radius=(uint)Application.GetRealHeight(20) }; AddChidren(blackBG); var sucBtn = new Button() { Y = Application.GetRealHeight(657), Width = Application.GetMinReal(346), Height = Application.GetMinReal(346), Gravity = Gravity.CenterHorizontal, UnSelectedImagePath = "Account/ChangeSuccess.png" }; AddChidren(sucBtn); var tipBtn = new Button() { Y = sucBtn.Bottom+Application.GetRealHeight(35), Width = Application.GetRealWidth(500), Height = Application.GetRealHeight(80), Gravity = Gravity.CenterHorizontal, TextID = R.MyInternationalizationString.ResetSuccess, TextColor = ZigbeeColor.Current.GXCTextBlackColor, TextSize = 16 }; AddChidren(tipBtn); var tip = new Button() { Y = tipBtn.Bottom+ Application.GetRealHeight(15), Width = Application.GetRealWidth(700), Height = Application.GetRealHeight(80), Gravity = Gravity.CenterHorizontal, TextID = R.MyInternationalizationString.ResetScucessPleaseLogin, TextColor = ZigbeeColor.Current.GXCTextGrayColor, TextSize = 14, }; AddChidren(tip); var loginBtn = new Button() { Y = Application.GetRealHeight(1284), Width = Application.GetRealWidth(688), Height = Application.GetRealHeight(127), Gravity = Gravity.CenterHorizontal, TextID = R.MyInternationalizationString.Login, TextSize = 15, TextColor = ZigbeeColor.Current.GXCTextGrayColor, SelectedTextColor = ZigbeeColor.Current.GXCTextWhiteColor, SelectedBackgroundColor = ZigbeeColor.Current.GXCButtonBlackSelectedColor, BackgroundColor = ZigbeeColor.Current.GXCButtonUnSelectedColor, Radius = (uint)Application.GetRealHeight(127 / 2), IsSelected = true }; AddChidren(loginBtn); loginBtn.MouseUpEventHandler += (sender, e) => { try { CommonPage.Instance.RemoveViewByTag("Forgot"); CommonPage.Instance.RemoveViewByTag("Login"); } catch { } finally { var login = new AccountLoginForm(); CommonPage.Instance.AddChidren(login); login.ShowForm(); } }; } } }