示例#1
0
        private static void StartThread(object o)
        {
            SplashObject so         = o as SplashObject;
            FrmLoading   splashForm = new FrmLoading(so);

            splashForm.ShowDialog();
        }
示例#2
0
 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;
 }
示例#3
0
文件: Public.cs 项目: rcw0125/XGWMS
        public static void ShowFlash()
        {
            SplashObject SplashObj;

            SplashObj = SplashObject.GetSplash();
            Thread.Sleep(3000);
            SplashObj.Dispose();
        }