Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uzitech/progressdialog
C# Multi-threaded background worker with dialog to show progress
https://github.com/uzitech/progressdialog
Last synced: 16 days ago
JSON representation
C# Multi-threaded background worker with dialog to show progress
- Host: GitHub
- URL: https://github.com/uzitech/progressdialog
- Owner: UziTech
- License: mit
- Created: 2014-10-09T14:28:28.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-11-08T20:51:12.000Z (about 8 years ago)
- Last Synced: 2024-10-15T12:18:55.457Z (about 1 month ago)
- Language: C#
- Size: 5.86 KB
- Stars: 4
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ProgressDialog
==============C# Multi-threaded background worker with dialog to show progress
Usage
=====
```c#
ProgressDialog pDialog = new ProgressDialog();
pDialog.Title = "Progress Title";
pDialog.DoWork += delegate(object dialog, DoWorkEventArgs dwe)
{
for (int i = 0; i < (int)dwe.Argument; i++)
{
pDialog.ReportProgress(i);
Thread.Sleep(100);
}
};
pDialog.ProgressChanged += delegate(object dialog, ProgressChangedEventArgs pce) {
pDialog.Message = pce.ProgressPercentage + "/100";
pDialog.Progress = pce.ProgressPercentage % 100;
};
pDialog.Completed += delegate(object dialog, RunWorkerCompletedEventArgs e) {
MessageBox.Show("Completed");
};
pDialog.Run(100);
```