示例#1
0
        void bkgSearch_ProgressChanged(object sender, ProgressChangedEventArgs e)
        {
            BackgroundWorker bkgWork = sender as BackgroundWorker;

            switch (e.ProgressPercentage)
            {
            case 0:

                asyncOpManager.BeginOperation(bkgWork, Properties.Messages.SearchInProgress, e.ProgressPercentage);

                break;


            case 100:

                asyncOpManager.UpdateStatus(bkgWork, Properties.Messages.EndOperation, e.ProgressPercentage);

                break;

            default:

                asyncOpManager.UpdateStatus(bkgWork, Properties.Messages.SearchInProgress, e.ProgressPercentage);

                break;
            }
        }