Init() public method

Initializes the progress dialog.
public Init ( int numSteps ) : void
numSteps int Number of steps of work to be done
return void
示例#1
0
        /// <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();
        }
示例#2
0
        /// <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();
        }