/// <summary> /// </summary> private void ShowRequisites( ) { if (this._initializeComplete) { var showRequisitesForm = new ShowNetworkRequisitesForm( ); showRequisitesForm.ShowDialog(this); } }
/// <summary> /// </summary> /// <param name="outputControlsObject"></param> private void PerformBatch ( [CanBeNull] object outputControlsObject) { var parameters = (BatchWithProgressbar)outputControlsObject; if (parameters?.ProgramsWithOutput != null) { var textBoxes = parameters.ProgramsWithOutput .Where ( programWithOutput => programWithOutput != null) .Select ( programWithOutput => programWithOutput.TextOutputControl) .ToList(); ShowNetworkRequisitesForm.SetControlsText ( Handler.NetworkRequisitesWillBeHere ?? string.Empty, textBoxes ); } if (parameters != null) { var progressIndicator = parameters.ProgressBar; if (progressIndicator != null) { progressIndicator.Style = ProgressBarStyle.Marquee; } if (parameters.ProgramsWithOutput != null) { foreach ( var programWithOutput in parameters.ProgramsWithOutput) { var thread = new Thread(this.SetBatchOutputToControl); thread.Start ( programWithOutput); } } } }