duheng
2025-02-07 80ef0be2e44f42d6f7dc0f9c928de0dbe7362138
WinFrmUI/HStation.WinFrmUI.Auth.Core/06-user-info/PersonalCenterDlg.cs
@@ -145,5 +145,23 @@
        {
            this.wechatBindingCtrl1.Initial();
        }
        //个人信息保存
        private async void BtnSave_Click(object sender, EventArgs e)
        {
            var vmo = await BLLFactory<Yw.BLL.User>.Instance.GetByID(GlobalParas._GlobalParas.UserID);
            vmo.Name = this.txtEditUserName.Text;
            var bol = await BLLFactory<Yw.BLL.User>.Instance.Update(vmo);
            if (!bol)
            {
                TipFormHelper.ShowError("更新失败!");
                return;
            }
            else
            {
                GlobalParas._GlobalParas.LoginName = this.txtEditUserName.Text;
                TipFormHelper.ShowSucceed("更新成功!");
            }
        }
    }
}