Пример #1
0
 public void ShowProgressPanel()
 {
     try
     {
         OverlayWindowOptions options = new OverlayWindowOptions(true, true, Color.GhostWhite, Color.Black, 0.7);
         handle = SplashScreenManager.ShowOverlayForm(this, options);
     }
     catch
     {
     }
 }
Пример #2
0
 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
     }
 }
Пример #3
0
        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));
        }
Пример #4
0
        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);
        }
Пример #5
0
 IOverlaySplashScreenHandle ShowProgressPanel(OverlayWindowOptions option, System.Windows.Forms.Control strlenh)
 {
     return(SplashScreenManager.ShowOverlayForm(strlenh, option));
 }
Пример #6
0
 IOverlaySplashScreenHandle ShowProgressPanel(OverlayWindowOptions option)
 {
     return(SplashScreenManager.ShowOverlayForm(container, option));
 }