Пример #1
0
        private void FinalizeProgressBarAfterConversion(ProgressEventArgs args)
        {
            args.Wfm.Status = (args.Succeeded ? WorkbookItem.itemStatus.Converted : WorkbookItem.itemStatus.Failed);

            listViewFiles.Items[args.Wfm.FileIndex].EnsureVisible();
            listViewFiles.Refresh();
        }
Пример #2
0
        private void InitialiseProgressBarForConversion(ProgressEventArgs args)
        {
            args.Wfm.Status = WorkbookItem.itemStatus.Initialised;

            listViewFiles.Items[args.Wfm.FileIndex].EnsureVisible();
            listViewFiles.Refresh();
        }
Пример #3
0
 void m_progressCallback_ProgressUpdate(object sender, ProgressEventArgs args)
 {
     switch (args.CombineStage)
     {
         case CombineStage.BeforeConvert:
             {
                 InitialiseProgressBarForConversion(args);
                 break;
             }
         case CombineStage.AfterConvert:
             {
                 FinalizeProgressBarAfterConversion(args);
                 break;
             }
     }
 }