public Loader() { Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US"); DelLang(); InitializeComponent(); SqlStartCheck.Start(); pictureBox1.Visible = false; pictureBox2.Visible = false; pictureBox3.Visible = false; switch (GetRandomInt()) { case 0: pictureBox1.Visible = true; break; case 1: pictureBox2.Visible = true; break; case 2: pictureBox3.Visible = true; break; } Opacity = 0; ShowSplashScreen.Start(); CloseForm.Start(); }
private void ShowSplashScreen_Tick(object sender, EventArgs e) { Opacity += 0.04; if (Opacity >= 1) { ShowSplashScreen.Stop(); WasThisLangUpdate(); DelOldLang(); Thread.Sleep(2000); HideSplashScreen.Start(); } }