duheng
2025-03-10 4c9511aac5b0df4c141da6b74bcae94645e3855e
Desktop/PBS.Desktop/Login/LoginFrm.cs
@@ -1,5 +1,4 @@
using DevExpress.DataProcessing;
using DevExpress.XtraBars.Navigation;
using 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;