Пример #1
0
 public CatalogFolderArgs(CatalogFolderProgressType type, IMailboxData currentMailbox, Stack<IFolderData> folderStack, IFolderData currentFolder, Process itemProcess, IItemData currentItem, Process childFolderProcess)
 {
     this.Type = type;
     this.CurrentMailbox = currentMailbox;
     this.FolderStack = folderStack;
     this.CurrentFolder = currentFolder;
     this.ItemProcess = itemProcess;
     this.CurrentItem = currentItem;
     this.ChildFolderProcess = childFolderProcess;
 }
Пример #2
0
 private void OnProgressChanged(CatalogProgressType type, Process mailboxProcess = null, IMailboxData mailbox = null)
 {
     if (ProgressChanged != null)
     {
         try
         {
             ProgressChanged(this, new CatalogProgressArgs(type, mailboxProcess, mailbox));
         }
         catch (Exception e)
         {
             System.Diagnostics.Trace.TraceError(e.GetExceptionDetail());
             OnExceptionThrowed(e);
         }
     }
 }
Пример #3
0
 private void OnFolderProgressChanged(CatalogFolderProgressType type,
     IMailboxData currentMailbox,
     Stack<IFolderData> folderStack = null,
     IFolderData currentFolder = null,
     Process itemProcess = null,
     IItemData currentItem = null,
     Process childFolderProcess = null)
 {
     if (FolderProgressChanged != null)
     {
         try
         {
             FolderProgressChanged(this, new CatalogFolderArgs(type, currentMailbox, folderStack, currentFolder, itemProcess, currentItem, childFolderProcess));
         }
         catch (Exception e)
         {
             System.Diagnostics.Trace.TraceError(e.GetExceptionDetail());
             OnExceptionThrowed(e);
         }
     }
 }