Exemplo n.º 1
0
        private void Operations_ProgressChanged(ProgressChangedEventArgs args)
        {
            if (args.CurrentValue.HasValue)
            {
                splashScreen.SetValue(args.CurrentValue.Value);
            }

            if (args.IsIndeterminate == true)
            {
                splashScreen.SetIndeterminate();
            }

            if (args.MaxValue.HasValue)
            {
                splashScreen.SetMaxValue(args.MaxValue.Value);
            }

            if (args.Progress == true)
            {
                splashScreen.Progress();
            }

            if (args.Regress == true)
            {
                splashScreen.Regress();
            }
        }