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); } }
public WaitingHelper(Control parentForm) { SplashFormProperties prop = new SplashFormProperties(); prop.UseFadeInEffect = true; prop.UseFadeOutEffect = true; sm = new SplashScreenManager(typeof(WaitLoadingForm), prop); }