private void HandleFormLoadInitiateSplashScreen(object sender, EventArgs e)
        {
            this.Hide();
            Thread thread = new Thread(this.ShowSplashScreen);
            thread.Start();
            SplashScreenWorker SplashWorker = new SplashScreenWorker();

            SplashWorker.ProgressChanged += (o, ex) =>
            {
                this.splashScreen.UpdateProgress(ex.Progress);
            };
            SplashWorker.HardWorkDone += (o, ex) =>
            {
                done = true;
                this.Show();
                this.Activate();
                this.Refresh();
                Thread.Sleep(200);
                Get_Next_airing();
            };
            SplashWorker.DoHardWork();
        }
Example #2
0
        private void HandleFormLoadInitiateSplashScreen(object sender, EventArgs e)
        {
            this.Hide();
            Thread thread = new Thread(this.ShowSplashScreen);
            thread.Start();
            SplashScreenWorker SplashWorker = new SplashScreenWorker();

            SplashWorker.ProgressChanged += (o, ex) =>
            {
                this.splashScreen.UpdateProgress(ex.Progress);
            };
            SplashWorker.HardWorkDone += (o, ex) =>
            {
                SSdone = true;
                this.Opacity = 0.1;
                this.TopMost = true;
                this.Show();
                this.Activate();
                Parameters.FadeIn(this);
                if (!Parameters.isDebugging) Display_Next_airing();
                alwaysontop();
            };
            SplashWorker.DoHardWork();
        }