Bloom.SplashScreen.FadeAndClose C# (CSharp) Method

FadeAndClose() public method

public FadeAndClose ( ) : void
return void
        public void FadeAndClose()
        {
            _fadeOutTimer.Enabled = true;
        }

Usage Example

Example #1
0
        private static void CloseSplashScreenAndCheckRegistration()
        {
            if (_splashForm != null)
            {
                if (RegistrationDialog.ShouldWeShowRegistrationDialog())
                {
                    _splashForm.Hide();             //the fading was getting stuck when we showed the registration.
                }
                _splashForm.FadeAndClose();         //it's going to hang around while it fades,
                _splashForm = null;                 //but we are done with it
            }

            if (RegistrationDialog.ShouldWeShowRegistrationDialog())
            {
                using (var dlg = new RegistrationDialog(false))
                {
                    if (_projectContext != null && _projectContext.ProjectWindow != null)
                    {
                        dlg.ShowDialog(_projectContext.ProjectWindow);
                    }
                    else
                    {
                        dlg.ShowDialog();
                    }
                }
            }
        }