/// <summary> /// Fires <see cref="Progress"/> /// </summary> private void OnCreationProgress( Int64 totalBytes, UInt64 bytesTransfered ) { QuickIOTransferFileCreationProgressEventArgs args = null; if ( Progress != null ) { args = new QuickIOTransferFileCreationProgressEventArgs( this, TargetFullName, totalBytes, bytesTransfered, ( DateTime ) TransferStarted ); Progress( this, args ); } if ( Observer != null ) { if ( args == null ) { args = new QuickIOTransferFileCreationProgressEventArgs( this, TargetFullName, totalBytes, bytesTransfered, ( DateTime ) TransferStarted ); } Observer.OnFileCreationProgress( args ); } }
/// <summary> /// Fire <see cref="FileCreationProgress"/> /// </summary> /// <param name="args">Holds further event information</param> public virtual void OnFileCreationProgress( QuickIOTransferFileCreationProgressEventArgs args ) { if ( FileCreationProgress != null ) { FileCreationProgress( this, args ); } }