| | |
| | | /// 更新用户名
|
| | | /// </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;
|