| | |
| | | SelectedTextColor = ZigbeeColor.Current.GXCTextWhiteColor, |
| | | Radius = (uint)Application.GetRealHeight(height / 2), |
| | | IsSelected = true, |
| | | Tag = "Phone" |
| | | IsBold=true, |
| | | Tag = "Phone", |
| | | TextSize= CommonFormResouce.TextSize |
| | | }; |
| | | PhoneEmailFL.AddChidren(SelectedPhone); |
| | | |
| | |
| | | SelectedTextColor = ZigbeeColor.Current.GXCTextWhiteColor, |
| | | Radius = (uint)Application.GetRealHeight(height / 2), |
| | | IsSelected = false, |
| | | Tag = "Email" |
| | | Tag = "Email", |
| | | TextSize = CommonFormResouce.TextSize |
| | | }; |
| | | PhoneEmailFL.AddChidren(SelectedEmail); |
| | | } |
| | |
| | | /// Button_Height |
| | | /// </summary> |
| | | private int Button_Height = 92; |
| | | /// <summary> |
| | | /// accountLine |
| | | /// </summary> |
| | | private Button accountLine; |
| | | |
| | | /// <summary> |
| | | /// Init |
| | |
| | | TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor, |
| | | Text = $"+{CommonPage.PhoneZoneStr}", |
| | | TextAlignment = TextAlignment.Center, |
| | | TextSize = CommonFormResouce.loginTextSize |
| | | TextSize = CommonFormResouce.TextSize |
| | | }; |
| | | accountFL.AddChidren(PhoneZoneBtn); |
| | | PhoneZoneBtn.MouseUpEventHandler += (sender, e) => |
| | |
| | | (sender as Button).Text = "+" + code; |
| | | CommonPage.PhoneZoneStr = code; |
| | | }; |
| | | |
| | | //var zoneListView = new PhoneZone { }; |
| | | //zoneListView.ActionSelectedZone += (zone) => |
| | | //{ |
| | | // var t = CommonPage.PhoneZoneStr; |
| | | // (sender as Button).Text = "+" + zone; |
| | | //}; |
| | | //parFL.AddChidren(zoneListView); |
| | | //zoneListView.Show(); |
| | | }; |
| | | |
| | | AccountET = new EditText() |
| | |
| | | TextColor = ZigbeeColor.Current.GXCTextBlackColor, |
| | | Text = account, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = CommonFormResouce.loginTextSize |
| | | TextSize = CommonFormResouce.PlaceHolderTextSize |
| | | }; |
| | | accountFL.AddChidren(AccountET); |
| | | |
| | | var accountLine = new Button() |
| | | accountLine = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(CommonFormResouce.Row_Height) - 1, |
| | | Y = Application.GetRealHeight(CommonFormResouce.Row_Height) - 2, |
| | | Width = Application.GetRealWidth(CommonFormResouce.Row_Width), |
| | | Height = 1, |
| | | BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor |
| | | }; |
| | | accountFL.AddChidren(accountLine); |
| | | |
| | | AccountET.FoucsChanged += Text_FoucesChangeEvent; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 光标改变 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="focusEvent"></param> |
| | | private void Text_FoucesChangeEvent(object sender, FocusEventArgs focusEvent) |
| | | { |
| | | if (focusEvent.Focus) |
| | | { |
| | | accountLine.BackgroundColor = ZigbeeColor.Current.GXCSelectedLineColor; |
| | | accountLine.Height = 2; |
| | | } |
| | | else |
| | | { |
| | | accountLine.BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor; |
| | | accountLine.Height = 1; |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | /// Button_Height |
| | | /// </summary> |
| | | private int Button_Height = 92; |
| | | /// <summary> |
| | | /// accountLine |
| | | /// </summary> |
| | | private Button accountLine; |
| | | |
| | | /// <summary> |
| | | /// Init |
| | |
| | | TextColor = ZigbeeColor.Current.GXCTextBlackColor, |
| | | Text = account, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = CommonFormResouce.loginTextSize |
| | | TextSize = CommonFormResouce.PlaceHolderTextSize |
| | | }; |
| | | accountFL.AddChidren(AccountET); |
| | | |
| | | var accountLine = new Button() |
| | | accountLine = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(CommonFormResouce.Row_Height) - 1, |
| | | Y = Application.GetRealHeight(CommonFormResouce.Row_Height)-2, |
| | | Width = Application.GetRealWidth(CommonFormResouce.Row_Width), |
| | | Height = 1, |
| | | BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor |
| | | }; |
| | | accountFL.AddChidren(accountLine); |
| | | |
| | | AccountET.FoucsChanged += Text_FoucesChangeEvent; |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 光标改变 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="focusEvent"></param> |
| | | private void Text_FoucesChangeEvent(object sender, FocusEventArgs focusEvent) |
| | | { |
| | | if(focusEvent.Focus) |
| | | { |
| | | accountLine.BackgroundColor = ZigbeeColor.Current.GXCSelectedLineColor; |
| | | accountLine.Height = 2; |
| | | } |
| | | else |
| | | { |
| | | accountLine.BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor; |
| | | accountLine.Height = 1; |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | /// Button_Height |
| | | /// </summary> |
| | | private int Button_Height = 92; |
| | | /// <summary> |
| | | /// accountLine |
| | | /// </summary> |
| | | private Button accountLine; |
| | | |
| | | /// <summary> |
| | | /// Init |
| | |
| | | TextColor = ZigbeeColor.Current.GXCTextBlackColor, |
| | | Text = account, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = CommonFormResouce.loginTextSize |
| | | TextSize = CommonFormResouce.PlaceHolderTextSize |
| | | }; |
| | | accountFL.AddChidren(AccountET); |
| | | |
| | | var accountLine = new Button() |
| | | accountLine = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(CommonFormResouce.Row_Height) - 1, |
| | | Y = Application.GetRealHeight(CommonFormResouce.Row_Height) - 2, |
| | | Width = Application.GetRealWidth(CommonFormResouce.Row_Width), |
| | | Height = 1, |
| | | BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor |
| | | }; |
| | | accountFL.AddChidren(accountLine); |
| | | |
| | | AccountET.FoucsChanged += Text_FoucesChangeEvent; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 光标改变 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="focusEvent"></param> |
| | | private void Text_FoucesChangeEvent(object sender, FocusEventArgs focusEvent) |
| | | { |
| | | if (focusEvent.Focus) |
| | | { |
| | | accountLine.BackgroundColor = ZigbeeColor.Current.GXCSelectedLineColor; |
| | | accountLine.Height = 2; |
| | | } |
| | | else |
| | | { |
| | | accountLine.BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor; |
| | | accountLine.Height = 1; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | /// Button_Height |
| | | /// </summary> |
| | | private int Button_Height = 92; |
| | | /// <summary> |
| | | /// accountLine |
| | | /// </summary> |
| | | private Button accountLine; |
| | | |
| | | /// <summary> |
| | | /// Init |
| | |
| | | TextColor = ZigbeeColor.Current.GXCTextBlackColor, |
| | | Text = account, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = CommonFormResouce.loginTextSize |
| | | TextSize = CommonFormResouce.PlaceHolderTextSize |
| | | }; |
| | | accountFL.AddChidren(AccountET); |
| | | |
| | | var accountLine = new Button() |
| | | accountLine = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(CommonFormResouce.Row_Height) - 1, |
| | | Y = Application.GetRealHeight(CommonFormResouce.Row_Height) - 2, |
| | | Width = Application.GetRealWidth(CommonFormResouce.Row_Width), |
| | | Height = 1, |
| | | BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor |
| | | }; |
| | | accountFL.AddChidren(accountLine); |
| | | |
| | | AccountET.FoucsChanged += Text_FoucesChangeEvent; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 光标改变 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="focusEvent"></param> |
| | | private void Text_FoucesChangeEvent(object sender, FocusEventArgs focusEvent) |
| | | { |
| | | if (focusEvent.Focus) |
| | | { |
| | | accountLine.BackgroundColor = ZigbeeColor.Current.GXCSelectedLineColor; |
| | | accountLine.Height = 2; |
| | | } |
| | | else |
| | | { |
| | | accountLine.BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor; |
| | | accountLine.Height = 1; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | public class EmailForgotRowForm : FrameLayout |
| | |
| | | /// Button_Height |
| | | /// </summary> |
| | | private int Button_Height = 92; |
| | | /// <summary> |
| | | /// accountLine |
| | | /// </summary> |
| | | private Button accountLine; |
| | | |
| | | /// <summary> |
| | | /// Init |
| | |
| | | TextColor = ZigbeeColor.Current.GXCTextBlackColor, |
| | | Text = account, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = CommonFormResouce.loginTextSize |
| | | TextSize = CommonFormResouce.PlaceHolderTextSize |
| | | }; |
| | | accountFL.AddChidren(AccountET); |
| | | |
| | | var accountLine = new Button() |
| | | accountLine = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(CommonFormResouce.Row_Height) - 1, |
| | | Y = Application.GetRealHeight(CommonFormResouce.Row_Height) - 2, |
| | | Width = Application.GetRealWidth(CommonFormResouce.Row_Width), |
| | | Height = 1, |
| | | BackgroundColor = ZigbeeColor.Current.GXCSelectedLineColor |
| | | BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor |
| | | }; |
| | | accountFL.AddChidren(accountLine); |
| | | |
| | | AccountET.FoucsChanged += Text_FoucesChangeEvent; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 光标改变 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="focusEvent"></param> |
| | | private void Text_FoucesChangeEvent(object sender, FocusEventArgs focusEvent) |
| | | { |
| | | if (focusEvent.Focus) |
| | | { |
| | | accountLine.BackgroundColor = ZigbeeColor.Current.GXCSelectedLineColor; |
| | | accountLine.Height = 2; |
| | | } |
| | | else |
| | | { |
| | | accountLine.BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor; |
| | | accountLine.Height = 1; |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | /// VerificationCodeET |
| | | /// </summary> |
| | | public EditText VerificationCodeET; |
| | | /// <summary> |
| | | /// pwdLine |
| | | /// </summary> |
| | | private Button pwdLine; |
| | | |
| | | /// <summary> |
| | | /// Init |
| | |
| | | TextColor = ZigbeeColor.Current.GXCTextGrayColor, |
| | | SelectedTextColor = ZigbeeColor.Current.GXCTextColor, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextSize=CommonFormResouce.TextSize, |
| | | Enable = false, |
| | | IsSelected = false |
| | | IsSelected = false, |
| | | IsBold=true |
| | | }; |
| | | codeFL.AddChidren(SendCodeBtn); |
| | | |
| | | var pwdLine = new Button() |
| | | pwdLine = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(CommonFormResouce.Row_Height) - 1, |
| | | Y = Application.GetRealHeight(CommonFormResouce.Row_Height) - 2, |
| | | Width = Application.GetRealWidth(CommonFormResouce.Row_Width), |
| | | Height = 1, |
| | | BackgroundColor = ZigbeeColor.Current.GXCSelectedLineColor |
| | | BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor |
| | | }; |
| | | codeFL.AddChidren(pwdLine); |
| | | |
| | | VerificationCodeET.FoucsChanged += Text_FoucesChangeEvent; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 光标改变 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="focusEvent"></param> |
| | | private void Text_FoucesChangeEvent(object sender, FocusEventArgs focusEvent) |
| | | { |
| | | if (focusEvent.Focus) |
| | | { |
| | | pwdLine.BackgroundColor = ZigbeeColor.Current.GXCSelectedLineColor; |
| | | pwdLine.Height = 2; |
| | | } |
| | | else |
| | | { |
| | | pwdLine.BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor; |
| | | pwdLine.Height = 1; |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | /// Button_Height |
| | | /// </summary> |
| | | private int Button_Height = 92; |
| | | /// <summary> |
| | | /// pwdLine |
| | | /// </summary> |
| | | private Button pwdLine; |
| | | |
| | | /// <summary> |
| | | /// Init |
| | |
| | | TextColor = ZigbeeColor.Current.GXCTextBlackColor, |
| | | Text = password, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = CommonFormResouce.loginTextSize, |
| | | TextSize = CommonFormResouce.PlaceHolderTextSize, |
| | | SecureTextEntry = true |
| | | }; |
| | | pwdFL.AddChidren(PasswrodET); |
| | |
| | | PasswrodET.SecureTextEntry = (sender as Button).IsSelected; |
| | | }; |
| | | |
| | | var pwdLine = new Button() |
| | | pwdLine = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(CommonFormResouce.Row_Height) - 1, |
| | | Y = Application.GetRealHeight(CommonFormResouce.Row_Height) - 2, |
| | | Width = Application.GetRealWidth(CommonFormResouce.Row_Width), |
| | | Height = 1, |
| | | BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor |
| | | }; |
| | | pwdFL.AddChidren(pwdLine); |
| | | |
| | | PasswrodET.FoucsChanged += Text_FoucesChangeEvent; |
| | | } |
| | | /// <summary> |
| | | /// SetPlaceholdText |
| | |
| | | public void SetPlaceholdText(string holdText) |
| | | { |
| | | PasswrodET.PlaceholderText = holdText; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 光标改变 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="focusEvent"></param> |
| | | private void Text_FoucesChangeEvent(object sender, FocusEventArgs focusEvent) |
| | | { |
| | | if (focusEvent.Focus) |
| | | { |
| | | pwdLine.BackgroundColor = ZigbeeColor.Current.GXCSelectedLineColor; |
| | | pwdLine.Height = 2; |
| | | } |
| | | else |
| | | { |
| | | pwdLine.BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor; |
| | | pwdLine.Height = 1; |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | /// Button_Height |
| | | /// </summary> |
| | | private int Button_Height = 92; |
| | | /// <summary> |
| | | /// pwdLine |
| | | /// </summary> |
| | | private Button pwdLine; |
| | | |
| | | /// <summary> |
| | | /// Init |
| | |
| | | TextColor = ZigbeeColor.Current.GXCTextBlackColor, |
| | | Text = password, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = CommonFormResouce.loginTextSize, |
| | | TextSize = CommonFormResouce.PlaceHolderTextSize, |
| | | SecureTextEntry = true |
| | | }; |
| | | pwdFL.AddChidren(PasswrodET); |
| | |
| | | PasswrodET.SecureTextEntry = (sender as Button).IsSelected; |
| | | }; |
| | | |
| | | var pwdLine = new Button() |
| | | pwdLine = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(CommonFormResouce.Row_Height) - 1, |
| | | Y = Application.GetRealHeight(CommonFormResouce.Row_Height) - 2, |
| | | Width = Application.GetRealWidth(CommonFormResouce.Row_Width), |
| | | Height = 1, |
| | | BackgroundColor = ZigbeeColor.Current.GXCSelectedLineColor |
| | | BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor |
| | | }; |
| | | pwdFL.AddChidren(pwdLine); |
| | | |
| | | PasswrodET.FoucsChanged += Text_FoucesChangeEvent; |
| | | } |
| | | /// <summary> |
| | | /// SetPlaceholdText |
| | |
| | | public void SetPlaceholdText(string holdText) |
| | | { |
| | | PasswrodET.PlaceholderText = holdText; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 光标改变 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="focusEvent"></param> |
| | | private void Text_FoucesChangeEvent(object sender, FocusEventArgs focusEvent) |
| | | { |
| | | if (focusEvent.Focus) |
| | | { |
| | | pwdLine.BackgroundColor = ZigbeeColor.Current.GXCSelectedLineColor; |
| | | pwdLine.Height = 2; |
| | | } |
| | | else |
| | | { |
| | | pwdLine.BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor; |
| | | pwdLine.Height = 1; |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | /// Button_Height |
| | | /// </summary> |
| | | private int Button_Height = 92; |
| | | /// <summary> |
| | | /// pwdLine |
| | | /// </summary> |
| | | private Button pwdLine; |
| | | |
| | | /// <summary> |
| | | /// Init |
| | |
| | | TextColor = ZigbeeColor.Current.GXCTextBlackColor, |
| | | Text = password, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = CommonFormResouce.loginTextSize, |
| | | TextSize = CommonFormResouce.PlaceHolderTextSize, |
| | | SecureTextEntry = true |
| | | }; |
| | | pwdFL.AddChidren(PasswrodET); |
| | |
| | | PasswrodET.SecureTextEntry = (sender as Button).IsSelected; |
| | | }; |
| | | |
| | | var pwdLine = new Button() |
| | | pwdLine = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(CommonFormResouce.Row_Height) - 1, |
| | | Y = Application.GetRealHeight(CommonFormResouce.Row_Height) - 2, |
| | | Width = Application.GetRealWidth(CommonFormResouce.Row_Width), |
| | | Height = 1, |
| | | BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor |
| | | }; |
| | | pwdFL.AddChidren(pwdLine); |
| | | |
| | | PasswrodET.FoucsChanged += Text_FoucesChangeEvent; |
| | | } |
| | | /// <summary> |
| | | /// SetPlaceholdText |
| | |
| | | public void SetPlaceholdText(string holdText) |
| | | { |
| | | PasswrodET.PlaceholderText = holdText; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 光标改变 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="focusEvent"></param> |
| | | private void Text_FoucesChangeEvent(object sender, FocusEventArgs focusEvent) |
| | | { |
| | | if (focusEvent.Focus) |
| | | { |
| | | pwdLine.BackgroundColor = ZigbeeColor.Current.GXCSelectedLineColor; |
| | | pwdLine.Height = 2; |
| | | } |
| | | else |
| | | { |
| | | pwdLine.BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor; |
| | | pwdLine.Height = 1; |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | /// VerificationCodeET |
| | | /// </summary> |
| | | public EditText VerificationCodeET; |
| | | /// <summary> |
| | | /// pwdLine |
| | | /// </summary> |
| | | private Button pwdLine; |
| | | /// <summary> |
| | | /// sendCodeBG |
| | | /// </summary> |
| | |
| | | SelectedBackgroundColor=ZigbeeColor.Current.GXCButtonSelectedColor, |
| | | Enable = false, |
| | | IsSelected = false, |
| | | Radius=(uint)Application.GetRealHeight(12) |
| | | Radius=(uint)Application.GetRealHeight(12), |
| | | IsBold=true, |
| | | TextSize=CommonFormResouce.TextSize |
| | | }; |
| | | codeFL.AddChidren(SendCodeBtn); |
| | | |
| | | var pwdLine = new Button() |
| | | pwdLine = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(CommonFormResouce.Row_Height) - 1, |
| | | Y = Application.GetRealHeight(CommonFormResouce.Row_Height) - 2, |
| | | Width = Application.GetRealWidth(536), |
| | | Height = 1, |
| | | BackgroundColor = ZigbeeColor.Current.GXCSelectedLineColor |
| | | BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor |
| | | }; |
| | | codeFL.AddChidren(pwdLine); |
| | | |
| | | VerificationCodeET.FoucsChanged += Text_FoucesChangeEvent; |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 光标改变 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="focusEvent"></param> |
| | | private void Text_FoucesChangeEvent(object sender, FocusEventArgs focusEvent) |
| | | { |
| | | if (focusEvent.Focus) |
| | | { |
| | | pwdLine.BackgroundColor = ZigbeeColor.Current.GXCSelectedLineColor; |
| | | pwdLine.Height = 2; |
| | | } |
| | | else |
| | | { |
| | | pwdLine.BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor; |
| | | pwdLine.Height = 1; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | public EditText VerificationCodeET; |
| | | /// <summary> |
| | | /// pwdLine |
| | | /// </summary> |
| | | private Button pwdLine; |
| | | /// <summary> |
| | | /// Timer |
| | | /// </summary> |
| | | private Timer t; |
| | |
| | | SelectedBackgroundColor = ZigbeeColor.Current.GXCButtonSelectedColor, |
| | | Enable = false, |
| | | IsSelected = false, |
| | | Radius = (uint)Application.GetRealHeight(12) |
| | | Radius = (uint)Application.GetRealHeight(12), |
| | | IsBold=true, |
| | | TextSize=CommonFormResouce.TextSize |
| | | }; |
| | | codeFL.AddChidren(SendCodeBtn); |
| | | |
| | | var pwdLine = new Button() |
| | | pwdLine = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(CommonFormResouce.Row_Height) - 1, |
| | | Y = Application.GetRealHeight(CommonFormResouce.Row_Height) - 2, |
| | | Width = Application.GetRealWidth(536), |
| | | Height = 1, |
| | | BackgroundColor = ZigbeeColor.Current.GXCSelectedLineColor |
| | | BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor |
| | | }; |
| | | codeFL.AddChidren(pwdLine); |
| | | |
| | | VerificationCodeET.FoucsChanged += Text_FoucesChangeEvent; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 光标改变 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="focusEvent"></param> |
| | | private void Text_FoucesChangeEvent(object sender, FocusEventArgs focusEvent) |
| | | { |
| | | if (focusEvent.Focus) |
| | | { |
| | | pwdLine.BackgroundColor = ZigbeeColor.Current.GXCSelectedLineColor; |
| | | pwdLine.Height = 2; |
| | | } |
| | | else |
| | | { |
| | | pwdLine.BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor; |
| | | pwdLine.Height = 1; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |