Exemplo n.º 1
0
 /// <summary>
 /// 打开等待窗体
 /// </summary>
 public void ShowForm()
 {
     if (_SplashScreen == null)
     {
         _SplashScreen = SplashScreen.Current;
         _SplashScreen.SetTransparentKey  = Color.Fuchsia;
         _SplashScreen.SetBackgroundImage = Kingrocket.CJ.Components.Properties.Resources.Splash;
         _SplashScreen.SetFade            = true;//设置淡入淡出效果
     }
     _SplashScreen.ShowSplashScreen();
 }
Exemplo n.º 2
0
 /// <summary>
 ///关闭等待窗体
 /// </summary>
 public void CloseFrom()
 {
     if (_SplashScreen.InvokeRequired)
     {
         _SplashScreen.Invoke(new DelCloseForm(CloseFrom));
     }
     else
     {
         _SplashScreen.CloseSplashScreen();
         _SplashScreen.Dispose();
     }
     _SplashScreen = null;
 }