public LongOperationSettings WithBoxIndicator()
 {
     return(new LongOperationSettings(
                BeforeShowIndicatorDelay,
                MinIndicatorShowTime,
                () =>
     {
         var indicator = new BoxIndicatorControl(_boxSettings);
         return indicator;
     },
                ProcessImage,
                AllowStopBeforeStart));
 }
        public LongOperationSettings WithBoxIndicator([NotNull] Action <BoxIndicatorSettings> adjustBoxSettings)
        {
            if (adjustBoxSettings == null)
            {
                throw new ArgumentNullException(nameof(adjustBoxSettings));
            }

            adjustBoxSettings(_boxSettings);

            return(new LongOperationSettings(
                       BeforeShowIndicatorDelay,
                       MinIndicatorShowTime,
                       () =>
            {
                var indicator = new BoxIndicatorControl(_boxSettings);
                return indicator;
            },
                       ProcessImage,
                       AllowStopBeforeStart));
        }