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; }
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); } } }