Пример #1
0
		//-------------------------------------------------------------------------
		// A static entry point to launch the splash screen.
		//
		//-------------------------------------------------------------------------
        static private void ShowForm()
        {
            sSForm = new SplashScreenForm();
            Application.Run(sSForm);
        }
Пример #2
0
		//-------------------------------------------------------------------------
		// A static entry point to close the splash screen.
		//
		//-------------------------------------------------------------------------
        static public void CloseForm()
        {
            if( sSForm != null )
            {
                // Start to close.
                sSForm.opacityIncrease = -sSForm.opacityDecrease;
            }
            sSForm = null;
            splashScreenThread = null;  // Not necessary at this point.
        }
Пример #3
0
		//-------------------------------------------------------------------------
		// Default constructor.
		// 
		//-------------------------------------------------------------------------
        public SplashScreenForm()
        {
            //
            // Required for Windows Form Designer support.
            //
            sSForm = null;
            splashScreenThread = null;
            InitializeComponent();

            this.Opacity = .5;
            timer1.Interval = TIMER_INTERVAL;
            timer1.Start();
            introText = "Initializing the WMI Code Creator. Loading WMI classes...";
            progressBar1.Maximum = 41;
            this.ShowInTaskbar = false;
        }