Exemplo n.º 1
0
 public CatalogItemArgs(CatalogItemProgressType type, IMailboxData mailbox, Stack<IFolderData> folderStack, IFolderData folder, IItemData currentItem)
 {
     this.Type = type;
     this.Mailbox = mailbox;
     this.FolderStack = folderStack;
     this.Folder = folder;
     this.CurrentItem = currentItem;
 }
Exemplo n.º 2
0
 private void OnItemProgressChanged(CatalogItemProgressType type, IMailboxData mailbox, Stack<IFolderData> folderStack, IFolderData folder, IItemData currentItem = null)
 {
     if (ItemProgressChanged != null)
     {
         try
         {
             ItemProgressChanged(this, new CatalogItemArgs(type, mailbox, folderStack, folder, currentItem));
         }
         catch (Exception e)
         {
             System.Diagnostics.Trace.TraceError(e.GetExceptionDetail());
             OnExceptionThrowed(e);
         }
     }
 }