/// <summary> /// The progress complete. /// </summary> /// <param name="progress"> /// The progress. /// </param> private static void ProgressComplete(ProgressItem progress) { if (progress != null) { progress.SetProgress(100); } }
/// <summary> /// The prepare progress. /// </summary> /// <param name="progress">The progress.</param> /// <param name="groups">The groups.</param> private void PrepareProgress(ProgressItem progress, GroupDefinition[] groups) { if (progress != null) { if (groups.Length > 0) { progress.SetPromisedChildCount(groups.Length); } else { progress.SetProgress(100); } } }