private static void StartThread(object o) { SplashObject so = o as SplashObject; FrmLoading splashForm = new FrmLoading(so); splashForm.ShowDialog(); }
public FrmLoading(SplashObject o) { InitializeComponent(); if (o.SplashFormInfo.GradualMode) { this.alphaBlendingBringer1.Interval = 200; this.alphaBlendingBringer1.SetAlphaBlending(this); } this.TopMost = o.SplashFormInfo.TopMost; if (o.SplashFormInfo.BackImage != null) { this.pictureBox1.Image = o.SplashFormInfo.BackImage; } if (o.SplashFormInfo.ShowCaption) { this.FormBorderStyle = FormBorderStyle.FixedSingle; } else { this.FormBorderStyle = FormBorderStyle.None; } this.Size = o.SplashFormInfo.FormSize; this.Text = o.SplashFormInfo.Text; this.splashObj = o; }
public static void ShowFlash() { SplashObject SplashObj; SplashObj = SplashObject.GetSplash(); Thread.Sleep(3000); SplashObj.Dispose(); }