private async void ShowLoadForm() { var op = new FluentSplashScreenOptions { Opacity = 100, Title = $"Hi ~ 【{GlobalCache.Admin.AdminName}】,欢迎回来!", Subtitle = "正在为您加载数据,请稍后!", RightFooter = "Starting...", LeftFooter = $"Copyright © 2021.1 - 2021.2 XIANG HAO.{Environment.NewLine} All Rights reserved.", LoadingIndicatorType = FluentLoadingIndicatorType.Dots, OpacityColor = Color.Gray, LogoImageOptions = { SvgImage = SvgImage.FromFile(AppDomain.CurrentDomain.BaseDirectory + "/Resource/管理员.svg"), SvgImageColorizationMode = SvgImageColorizationMode.Default, SvgImageSize= new Size(60, 60) } }; this.Hide(); SplashScreenManager.ShowFluentSplashScreen( op, parentForm: this, useFadeIn: true, useFadeOut: true ); var admin = await _api.GetAdminInfo(new Admin { AdminName = GlobalCache.Admin.AdminName, AdminPassword = GlobalCache.Admin.AdminPassword }); GlobalCache.Admin = admin; Thread.Sleep(2500); //关闭加载窗体 SplashScreenManager.CloseForm(); new FrmMain().Show(); }