Beispiel #1
0
        private static void ThreadStartDisplay()
        {
            frmSplash.f = new frmSplash();
            frmSplash.f.Show();
            DateTime now = DateTime.Now;

            while (DateTime.Now < now + TimeSpan.FromSeconds(2))
            {
                Thread.Sleep(100);
                Application.DoEvents();
            }
            frmSplash.FadeOut(frmSplash.f);
        }
Beispiel #2
0
        private static void ThreadStartDisplay()
        {
            frmSplash.f = new frmSplash();
            frmSplash.f.Show();
            DateTime now = DateAndTime.Now;

            while (DateTime.Compare(DateAndTime.Now, DateAndTime.DateAdd(DateInterval.Second, 2.0, now)) <= 0)
            {
                Thread.Sleep(100);
                Application.DoEvents();
            }
            frmSplash.FadeOut((Form)frmSplash.f);
        }