public void ShowProgressPanel() { try { OverlayWindowOptions options = new OverlayWindowOptions(true, true, Color.GhostWhite, Color.Black, 0.7); handle = SplashScreenManager.ShowOverlayForm(this, options); } catch { } }
public void StartLoading(System.Windows.Forms.Control strlenh) { try { var backColor = Color.Transparent; var foreColor = Color.Transparent; var opacity = 0.5; var waitImage = Image.FromFile("Images\\2.gif"); var options = new OverlayWindowOptions(false, false, backColor, foreColor, opacity, waitImage); handle = ShowProgressPanel(options, strlenh); } catch (Exception) { //null } }
public static IOverlaySplashScreenHandle ShowLoader(this Control handledControl) { OverlayWindowOptions options = new OverlayWindowOptions() { AnimationType = WaitAnimationType.Line, LineAnimationParameters = new LineAnimationParams(5, 15, 5), ForeColor = FormBrushes.ButtonBackgroundColor, BackColor = FormBrushes.WindowForegroundColor, FadeIn = true, FadeOut = true, Opacity = 0.35, StartupDelay = 55, }; Func <IOverlaySplashScreenHandle> func = () => SplashScreenManager.ShowOverlayForm(handledControl, options); return((IOverlaySplashScreenHandle)handledControl.Invoke(func)); }
public void ShowLoading() { bool useFadeIn = true; bool useFadeOut = true; Color backColor = Color.Black; Color foreColor = Color.Black; double opacity = 0.5; Image waitImage = Image.FromFile("../../Images/loading.png"); OverlayWindowOptions options = new OverlayWindowOptions( useFadeIn, useFadeOut, backColor, foreColor, opacity, waitImage); handle = ShowProgressPanel(options); }
IOverlaySplashScreenHandle ShowProgressPanel(OverlayWindowOptions option, System.Windows.Forms.Control strlenh) { return(SplashScreenManager.ShowOverlayForm(strlenh, option)); }
IOverlaySplashScreenHandle ShowProgressPanel(OverlayWindowOptions option) { return(SplashScreenManager.ShowOverlayForm(container, option)); }