Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Progress event over CDBuilder #281

Open
akprogram opened this issue Apr 19, 2023 · 0 comments
Open

Progress event over CDBuilder #281

akprogram opened this issue Apr 19, 2023 · 0 comments

Comments

@akprogram
Copy link

Hi,
Is there any way to insert progress event to show user CD-Build activity?

builder.Progress += (percentage) =>{ progressbar1.Value=percentage; };

CDBuilder builder = new CDBuilder();
builder.Progress += (percentage) =>{ progressbar1.Value=percentage; };
Dictionary<string, string> resultList = new Dictionary<string, string>();

// Get main folder and put it into results.
getFileList(sourceDirectory, sourceDirectory).ToList().ForEach(file => resultList.Add(file.Key, file.Value));

// Finally, add all files collected to the ISO.
foreach (KeyValuePair<string, string> pair in resultList.ToList())
{
	builder.AddFile(pair.Key, pair.Value);
}

builder.Build(targetFile);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant