Exemplo n.º 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;
 }
Exemplo n.º 2
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);
         }
     }
 }