ZeroInstall.MainForm.GetProgressControl C# (CSharp) Method

GetProgressControl() public method

public GetProgressControl ( [ taskName ) : IProgress
taskName [
return IProgress
        public IProgress<TaskSnapshot> GetProgressControl([NotNull] string taskName)
        {
            #region Sanity checks
            if (string.IsNullOrEmpty(taskName)) throw new ArgumentNullException(nameof(taskName));
            #endregion

            taskControl.TaskName = taskName;
            taskControl.Visible = true;
            return taskControl;
        }