| | |
| | | TextSize = CommonFormResouce.TextSize |
| | | }; |
| | | accountFL.AddChidren(PhoneZoneBtn); |
| | | PhoneZoneBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | var form = new AreaCodeSelectForm(); |
| | | parFL.AddChidren(form); |
| | | form.InitForm(); |
| | | form.ShowForm(); |
| | | form.FinishSelectEvent += (code) => |
| | | { |
| | | (sender as Button).Text = "+" + code; |
| | | CommonPage.PhoneZoneStr = code; |
| | | }; |
| | | }; |
| | | //目前只针对+86 |
| | | //PhoneZoneBtn.MouseUpEventHandler += (sender, e) => |
| | | //{ |
| | | // var form = new AreaCodeSelectForm(); |
| | | // parFL.AddChidren(form); |
| | | // form.InitForm(); |
| | | // form.ShowForm(); |
| | | // form.FinishSelectEvent += (code) => |
| | | // { |
| | | // (sender as Button).Text = "+" + code; |
| | | // CommonPage.PhoneZoneStr = code; |
| | | // }; |
| | | //}; |
| | | |
| | | AccountET = new EditText() |
| | | { |
| | |
| | | /// <param name="account"></param> |
| | | public void Init(FrameLayout frameLayout, FrameLayout parFL, string account, int x, int y) |
| | | { |
| | | var accountFL = new FrameLayout() |
| | | { |
| | | X = Application.GetRealWidth(x), |
| | | Y = Application.GetRealHeight(y), |
| | | Width = Application.GetRealWidth(CommonFormResouce.Row_Width), |
| | | Height = Application.GetRealHeight(CommonFormResouce.Row_Height), |
| | | BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor |
| | | }; |
| | | frameLayout.AddChidren(accountFL); |
| | | this.X = Application.GetRealWidth(x);
|
| | | this.Y = Application.GetRealHeight(y);
|
| | | this.Width = Application.GetRealWidth(CommonFormResouce.Row_Width);
|
| | | this.Height = Application.GetRealHeight(CommonFormResouce.Row_Height);
|
| | | this.BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor; |
| | | frameLayout.AddChidren(this); |
| | | |
| | | var accountBtn = new Button() |
| | | { |
| | |
| | | Gravity = Gravity.CenterVertical, |
| | | UnSelectedImagePath = "Account/Account.png" |
| | | }; |
| | | accountFL.AddChidren(accountBtn); |
| | | this.AddChidren(accountBtn); |
| | | |
| | | AccountET = new EditText() |
| | | { |
| | |
| | | TextColor = ZigbeeColor.Current.GXCTextBlackColor, |
| | | Text = account, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = CommonFormResouce.PlaceHolderTextSize |
| | | TextSize = CommonFormResouce.PlaceHolderTextSize, |
| | | IsNumberKeyboardType = true |
| | | }; |
| | | accountFL.AddChidren(AccountET); |
| | | this.AddChidren(AccountET); |
| | | |
| | | accountLine = new Button() |
| | | { |
| | |
| | | Height = 1, |
| | | BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor |
| | | }; |
| | | accountFL.AddChidren(accountLine); |
| | | this.AddChidren(accountLine); |
| | | |
| | | AccountET.FoucsChanged += Text_FoucesChangeEvent; |
| | | |
| | |
| | | /// <param name="account"></param> |
| | | public void Init(FrameLayout frameLayout, string account, int x, int y) |
| | | { |
| | | var accountFL = new FrameLayout() |
| | | { |
| | | X = Application.GetRealWidth(x), |
| | | Y = Application.GetRealHeight(y), |
| | | Width = Application.GetRealWidth(CommonFormResouce.Row_Width), |
| | | Height = Application.GetRealHeight(CommonFormResouce.Row_Height), |
| | | BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor |
| | | }; |
| | | frameLayout.AddChidren(accountFL); |
| | | this.X = Application.GetRealWidth(x);
|
| | | this.Y = Application.GetRealHeight(y);
|
| | | this.Width = Application.GetRealWidth(CommonFormResouce.Row_Width);
|
| | | this.Height = Application.GetRealHeight(CommonFormResouce.Row_Height);
|
| | | this.BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor; |
| | | frameLayout.AddChidren(this); |
| | | |
| | | var accountBtn = new Button() |
| | | { |
| | |
| | | Gravity = Gravity.CenterVertical, |
| | | UnSelectedImagePath = "Account/Account.png" |
| | | }; |
| | | accountFL.AddChidren(accountBtn); |
| | | this.AddChidren(accountBtn); |
| | | |
| | | AccountET = new EditText() |
| | | { |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = CommonFormResouce.PlaceHolderTextSize |
| | | }; |
| | | accountFL.AddChidren(AccountET); |
| | | this.AddChidren(AccountET); |
| | | |
| | | accountLine = new Button() |
| | | { |
| | |
| | | Height = 1, |
| | | BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor |
| | | }; |
| | | accountFL.AddChidren(accountLine); |
| | | this.AddChidren(accountLine); |
| | | |
| | | AccountET.FoucsChanged += Text_FoucesChangeEvent; |
| | | } |
| | |
| | | /// <param name="y"></param> |
| | | public void Init(FrameLayout frameLayout, int x, int y, string password = "") |
| | | { |
| | | var pwdFL = new FrameLayout() |
| | | { |
| | | X = Application.GetRealWidth(x), |
| | | Y = Application.GetRealHeight(y), |
| | | Width = Application.GetRealWidth(CommonFormResouce.Row_Width), |
| | | Height = Application.GetRealHeight(CommonFormResouce.Row_Height), |
| | | BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor |
| | | }; |
| | | frameLayout.AddChidren(pwdFL); |
| | | this.X = Application.GetRealWidth(x);
|
| | | this.Y = Application.GetRealHeight(y);
|
| | | this.Width = Application.GetRealWidth(CommonFormResouce.Row_Width);
|
| | | this.Height = Application.GetRealHeight(CommonFormResouce.Row_Height);
|
| | | this.BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor; |
| | | frameLayout.AddChidren(this); |
| | | |
| | | var passwordBtn = new Button() |
| | | { |
| | |
| | | Gravity = Gravity.CenterVertical, |
| | | UnSelectedImagePath = "Account/Password.png" |
| | | }; |
| | | pwdFL.AddChidren(passwordBtn); |
| | | this.AddChidren(passwordBtn); |
| | | |
| | | PasswrodET = new EditText() |
| | | { |
| | |
| | | TextSize = CommonFormResouce.PlaceHolderTextSize, |
| | | SecureTextEntry = true |
| | | }; |
| | | pwdFL.AddChidren(PasswrodET); |
| | | this.AddChidren(PasswrodET); |
| | | |
| | | hidenPWDbtn = new Button() |
| | | { |
| | |
| | | UnSelectedImagePath = "Account/UnhidePwd.png", |
| | | IsSelected = true |
| | | }; |
| | | pwdFL.AddChidren(hidenPWDbtn); |
| | | this.AddChidren(hidenPWDbtn); |
| | | |
| | | hidenPWDbtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | |
| | | Height = 1, |
| | | BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor |
| | | }; |
| | | pwdFL.AddChidren(pwdLine); |
| | | this.AddChidren(pwdLine); |
| | | |
| | | PasswrodET.FoucsChanged += Text_FoucesChangeEvent; |
| | | } |