public Init ( int numSteps ) : void | ||
numSteps | int | Number of steps of work to be done |
return | void |
/// <summary> /// Displays a progress dialog in our main thread and initiates the signing /// of files in another thread. /// </summary> private void SignFiles() { // Initiate the progress dialog: var progressForm = new ProgressForm(); progressForm.Init(m_parameters.PathsOfFilesToSign.Count); // Launch the signing task: System.Threading.ThreadPool.QueueUserWorkItem(ReallySignFiles, progressForm); // Display progress dialog: progressForm.ShowDialog(); }
/// <summary> /// Displays a progress dialog in our main thread and initiates the signing /// of files in another thread. /// </summary> private void SignFiles() { // Initiate the progress dialog: var progressForm = new ProgressForm(); progressForm.Init(m_parameters.PathsOfFilesToSign.Count); // Launch the signing task: System.Threading.ThreadPool.QueueUserWorkItem(ReallySignFiles, progressForm); // Display progress dialog: progressForm.ShowDialog(); }