| | |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | PlaceholderTextColor = CSS_Color.PromptingColor1, |
| | | PlaceholderText = Language.StringByID(StringId.PlsEntryPhoneNumber), |
| | | PlaceholderText = UserInfo.Current.AccountString,// Language.StringByID(StringId.PlsEntryPhoneNumber), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Enable = false |
| | | }; |
| | | accountView.AddChidren(etAccount); |
| | | |
| | |
| | | var btnLogin = new Button() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealHeight(403), |
| | | Y = Application.GetRealHeight(353), |
| | | Width = Application.GetRealWidth(220), |
| | | Height = Application.GetRealWidth(44), |
| | | Radius = (uint)Application.GetRealWidth(22), |
| | |
| | | }; |
| | | bodyView.AddChidren(btnLogin); |
| | | |
| | | string account = ""; |
| | | etAccount.TextChangeEventHandler = (sender, e) => |
| | | { |
| | | account = etAccount.Text.Trim(); |
| | | if (account.Length > 0 && etPassword.Text.Trim().Length > 0) |
| | | { |
| | | btnLogin.IsSelected = true; |
| | | } |
| | | else |
| | | { |
| | | btnLogin.IsSelected = false; |
| | | } |
| | | }; |
| | | etPassword.TextChangeEventHandler += (sender, e) => |
| | | { |
| | | if (etAccount.Text.Trim().Length > 0 && etPassword.Text.Trim().Length > 0) |
| | | if ( etPassword.Text.Trim().Length > 0) |
| | | { |
| | | btnLogin.IsSelected = true; |
| | | } |