From 4c9511aac5b0df4c141da6b74bcae94645e3855e Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期一, 10 三月 2025 13:55:33 +0800 Subject: [PATCH] Merge branch 'master' of http://47.103.154.90:83/r/HStation/XHS.V1.0 --- Desktop/PBS.Desktop/Login/LoginFrm.cs | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Desktop/PBS.Desktop/Login/LoginFrm.cs b/Desktop/PBS.Desktop/Login/LoginFrm.cs index 75becd1..ff871e6 100644 --- a/Desktop/PBS.Desktop/Login/LoginFrm.cs +++ b/Desktop/PBS.Desktop/Login/LoginFrm.cs @@ -1,5 +1,4 @@ -锘縰sing DevExpress.DataProcessing; -using DevExpress.XtraBars.Navigation; +锘縰sing DevExpress.XtraBars.Navigation; using DevExpress.XtraEditors; using HStation.WinFrmUI; using Yw; @@ -71,8 +70,11 @@ return; } - this.Invoke(() => - { + + //while (!this.IsHandleCreated) + // await Task.Delay(100); // 寮傛绛夊緟 + + this.BeginInvoke(new Action(() => { var threadId = Thread.CurrentThread.ManagedThreadId; Yw.Untity.UserRegister.Regist ( @@ -86,7 +88,9 @@ result.Software.Project.ID, result.Software.ID ); - }); + + })); + Yw.WinFrmUI.LoginUserInfo.CorpID = result.User.Corpration.ID; Yw.WinFrmUI.LoginUserInfo.UserID = result.User.ID; Yw.WinFrmUI.LoginUserInfo.AdminType = result.User.AdminType; -- Gitblit v1.9.3