Ejemplo n.º 1
0
        /// <summary>
        ///   Starts the actual splash screen.
        /// </summary>
        /// <remarks>
        ///   This method is started in a background thread by the <see cref = "Run" /> method.
        /// </remarks>
        private void DoRun()
        {
            string oldInfo = null;

            _frm = new SplashForm();
            _frm.Show();
            _frm.Update();

            while (!_stopRequested) //run until stop of splashscreen is requested
            {
                _frm.TopMost = false;
                _frm.BringToFront();

                if (oldInfo != _info)
                {
                    _frm.SetInformation(_info);
                    oldInfo = _info;
                }
                Thread.Sleep(25);
            }
            _frm.Close(); //closes, and disposes the form
            _frm = null;
        }
        /// <summary>
        ///   Starts the actual splash screen.
        /// </summary>
        /// <remarks>
        ///   This method is started in a background thread by the <see cref = "Run" /> method.
        /// </remarks>
        private void DoRun()
        {
            string oldInfo = null;
              _frm = new SplashForm();
              _frm.Show();
              _frm.Update();

              while (!_stopRequested) //run until stop of splashscreen is requested
              {
            _frm.TopMost = false;
            _frm.BringToFront();

            if (oldInfo != _info)
            {
              _frm.SetInformation(_info);
              oldInfo = _info;
            }
            Thread.Sleep(25);
              }
              _frm.Close(); //closes, and disposes the form
              _frm = null;
        }