예제 #1
0
        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();
        }
예제 #2
0
        private void ShowSplashScreen_Tick(object sender, EventArgs e)
        {
            Opacity += 0.04;

            if (Opacity >= 1)
            {
                ShowSplashScreen.Stop();
                WasThisLangUpdate();
                DelOldLang();
                Thread.Sleep(2000);
                HideSplashScreen.Start();
            }
        }