| | |
| | | {
|
| | | frameMiddleBack = new NormalFrameLayout();
|
| | | frameMiddleBack.Y = Application.GetRealHeight(363);
|
| | | frameMiddleBack.Height = Application.GetRealHeight(1008);
|
| | | frameMiddleBack.Height = Application.GetRealHeight(1008) - ControlCommonResourse.ListViewRowHeight - Application.GetRealHeight(12);
|
| | | frameMiddleBack.BackgroundColor = UserCenterColor.Current.White;
|
| | | bodyFrameLayout.AddChidren(frameMiddleBack);
|
| | | }
|
| | |
| | | rowName.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uName), 350);
|
| | | //名称输入
|
| | | var txtName = new TextInputControl(700, true);
|
| | | txtName.MaxByte = 36;//限制36个字节
|
| | | txtName.UseFocusColor = true;
|
| | | txtName.X = bodyFrameLayout.Width - Application.GetRealWidth(700) - ControlCommonResourse.XXLeft;
|
| | | txtName.Gravity = Gravity.CenterVertical;
|
| | |
| | | });
|
| | | //输入值改变事件(2020.04.05:以前都定死说按回车键才更新,现在又说名字没有同步
|
| | | //所以才出此下策,添加这个事件)
|
| | | txtName.TextChangeEventHandler += (sender, value) =>
|
| | | txtName.TextChangedEvent += (value) =>
|
| | | {
|
| | | UserCenterResourse.UserInfo.UserName = value;
|
| | | };
|
| | |
| | |
|
| | |
|
| | | var rowOther = new FrameRowControl(listMidFrame.rowSpace / 2);
|
| | | listMidFrame.AddChidren(rowOther);
|
| | | //listMidFrame.AddChidren(rowOther);
|
| | | //第三方账号
|
| | | rowOther.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uAuthenticatedOtherPartyAccount), 400);
|
| | | //底线
|
| | |
| | | {
|
| | | var specialFrame = new FrameLayout();
|
| | | specialFrame.Height = ControlCommonResourse.ListViewRowHeight;
|
| | | specialFrame.Y = Application.GetRealHeight(1394);
|
| | | specialFrame.Y = Application.GetRealHeight(1394) - ControlCommonResourse.ListViewRowHeight - Application.GetRealHeight(12);
|
| | | specialFrame.BackgroundColor = UserCenterColor.Current.White;
|
| | | bodyFrameLayout.AddChidren(specialFrame);
|
| | |
|
| | |
| | | /// 更新用户名
|
| | | /// </summary>
|
| | | /// <param name="txtName"></param>
|
| | | private async void SaveUserName(TextInputControl txtName, bool showMsg)
|
| | | private void SaveUserName(TextInputControl txtName, bool showMsg)
|
| | | {
|
| | | if (UserCenterResourse.UserInfo.UserName == string.Empty)
|
| | | {
|
| | |
| | | var pra = new SaveUserNamePra();
|
| | | pra.UserName = UserCenterResourse.UserInfo.UserName;
|
| | |
|
| | | bool result = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/UpdateUserName", false, pra);
|
| | | bool result = UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/UpdateUserName", false, pra);
|
| | | if (result == false)
|
| | | {
|
| | | return;
|
| | |
| | | /// </summary>
|
| | | /// <param name="btnUser"></param>
|
| | | /// <param name="imagePath"></param>
|
| | | private async void UpLoadUserIconFile(ImageView btnUser, string imagePath)
|
| | | private void UpLoadUserIconFile(ImageView btnUser, string imagePath)
|
| | | {
|
| | | var pra = new { HeadImage = Shared.IO.FileUtils.ReadFile(imagePath) };
|
| | | var result = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/UpdateHeadImage", false, pra);
|
| | | var result = UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/UpdateHeadImage", false, pra);
|
| | | if (result == true)
|
| | | {
|
| | | UserCenterResourse.UserInfo.UserIconFileChanged = true;
|