/// <summary>
 /// </summary>
 /// <param name="textValue"></param>
 /// <param name="textControls"></param>
 private static void SetControlsText
 (
     string textValue,
     [CanBeNull] IEnumerable <Control> textControls)
 {
     if (textControls != null)
     {
         foreach (var textBox in textControls)
         {
             var setText = new SetControlValueDelegate
                               (ShowNetworkRequisitesForm.SetControlText);
             var box = textBox;
             box?.BeginInvoke
             (
                 setText,
                 box,
                 textValue);
         }
     }
 }
        /// <summary>
        ///
        /// </summary>
        private void SetBatchOutputToControl
        (
            [CanBeNull] object input
        )
        {
            var programWithOutput = (ProgramWithOutput)input;

            if (programWithOutput != null)
            {
                var program     = programWithOutput.Program;
                var arguments   = programWithOutput.ArgumentsString;
                var textControl = programWithOutput.TextOutputControl;

                if (arguments != null)
                {
                    var programOutput = Handler
                                        .ExecuteProgramWithArguments
                                        (
                        program,
                        arguments
                                        );

                    var setControlText = new SetControlValueDelegate
                                             (ShowNetworkRequisitesForm.SetControlText);
                    this.BeginInvoke
                    (
                        setControlText,
                        textControl,
                        programOutput);
                }
            }

            var onOnBatchFinish = this.OnBatchFinish;

            onOnBatchFinish?.Invoke();
        }