/// <summary> /// 初始化控件。 /// </summary> /// <param name="filter">当前的Viewer要显示哪些传送项目的状态信息</param> public void Initialize(IFileOutter _fileOutter, Func <TransferingProject, bool> filter) { this.fileOutter = _fileOutter; this.projectFilter = filter; //this.fileOutter.FileRequestReceived += new ESPlus.Application.FileTransfering.CbFileRequestReceived(fileOutter_FileRequestReceived); this.fileOutter.FileSendingEvents.FileTransStarted += new CbGeneric <TransferingProject>(fileTransStarted); this.fileOutter.FileSendingEvents.FileTransCompleted += new CbGeneric <TransferingProject>(fileTransCompleted); this.fileOutter.FileSendingEvents.FileTransDisruptted += new CbGeneric <TransferingProject, FileTransDisrupttedType>(fileTransDisruptted); this.fileOutter.FileSendingEvents.FileTransProgress += new CbFileSendedProgress(fileTransProgress); this.fileOutter.FileSendingEvents.FileResumedTransStarted += new CbGeneric <TransferingProject>(fileSenderManager_FileResumedTransStarted); this.fileOutter.FileReceivingEvents.FileTransStarted += new CbGeneric <TransferingProject>(fileTransStarted); this.fileOutter.FileReceivingEvents.FileResumedTransStarted += new CbGeneric <TransferingProject>(fileReceiverManager_FileResumedTransStarted); this.fileOutter.FileReceivingEvents.FileTransCompleted += new CbGeneric <TransferingProject>(fileTransCompleted); this.fileOutter.FileReceivingEvents.FileTransDisruptted += new CbGeneric <TransferingProject, FileTransDisrupttedType>(fileTransDisruptted); this.fileOutter.FileReceivingEvents.FileTransProgress += new CbFileSendedProgress(fileTransProgress); }
/// <summary> /// ��ʼ���ؼ��� /// </summary> /// <param name="filter">��ǰ��ViewerҪ��ʾ��Щ������Ŀ��״̬��Ϣ</param> public void Initialize(IFileOutter _fileOutter, Func<TransferingProject, bool> filter) { this.fileOutter = _fileOutter; this.projectFilter = filter; //this.fileOutter.FileRequestReceived += new ESPlus.Application.FileTransfering.CbFileRequestReceived(fileOutter_FileRequestReceived); this.fileOutter.FileSendingEvents.FileTransStarted += new CbGeneric<TransferingProject>(fileTransStarted); this.fileOutter.FileSendingEvents.FileTransCompleted += new CbGeneric<TransferingProject>(fileTransCompleted); this.fileOutter.FileSendingEvents.FileTransDisruptted += new CbGeneric<TransferingProject, FileTransDisrupttedType>(fileTransDisruptted); this.fileOutter.FileSendingEvents.FileTransProgress += new CbFileSendedProgress(fileTransProgress); this.fileOutter.FileSendingEvents.FileResumedTransStarted += new CbGeneric<TransferingProject>(fileSenderManager_FileResumedTransStarted); this.fileOutter.FileReceivingEvents.FileTransStarted += new CbGeneric<TransferingProject>(fileTransStarted); this.fileOutter.FileReceivingEvents.FileResumedTransStarted += new CbGeneric<TransferingProject>(fileReceiverManager_FileResumedTransStarted); this.fileOutter.FileReceivingEvents.FileTransCompleted += new CbGeneric<TransferingProject>(fileTransCompleted); this.fileOutter.FileReceivingEvents.FileTransDisruptted += new CbGeneric<TransferingProject, FileTransDisrupttedType>(fileTransDisruptted); this.fileOutter.FileReceivingEvents.FileTransProgress += new CbFileSendedProgress(fileTransProgress); }