Ejemplo n.º 1
0
        public static void ShowWaitForm(Type splashFormType, Form parentForm, string caption = "", string description = "")
        {
            if (_splashScreenManager == null)
            {
                SplashFormProperties info = new SplashFormProperties(parentForm, false, false);

                _splashScreenManager = new SplashScreenManager(splashFormType, info);
            }
            else
            {
                if (_splashScreenManager.Properties.ParentForm != parentForm)
                {
                    _splashScreenManager.Properties = new SplashFormProperties(parentForm, false, false);
                }

                _splashScreenManager.ActiveSplashFormTypeInfo = DevExpress.XtraSplashScreen.TypeInfo.FromType(splashFormType);
            }

            _splashScreenManager.ShowWaitForm();

            if (!String.IsNullOrEmpty(caption))
            {
                _splashScreenManager.SetWaitFormCaption(caption);
            }

            if (!String.IsNullOrEmpty(description))
            {
                _splashScreenManager.SetWaitFormDescription(description);
            }
        }
Ejemplo n.º 2
0
        public WaitingHelper(Control parentForm)
        {
            SplashFormProperties prop = new SplashFormProperties();

            prop.UseFadeInEffect  = true;
            prop.UseFadeOutEffect = true;
            sm = new SplashScreenManager(typeof(WaitLoadingForm), prop);
        }