/// <summary> /// Fires <see cref="Progress"/> /// </summary> private void OnCreationStarted( Int64 totalBytes ) { QuickIOTransferFileCreationStartedEventArgs args = null; if ( Started != null ) { args = new QuickIOTransferFileCreationStartedEventArgs( this, TargetFullName, totalBytes ); Started( this, args ); } if ( Observer != null ) { if ( args == null ) { args = new QuickIOTransferFileCreationStartedEventArgs( this, TargetFullName, totalBytes ); } Observer.OnFileCreationStarted( args ); } }
/// <summary> /// Fire <see cref="FileCreationStarted"/> /// </summary> /// <param name="args">Holds further event information</param> public virtual void OnFileCreationStarted( QuickIOTransferFileCreationStartedEventArgs args ) { if ( FileCreationStarted != null ) { FileCreationStarted( this, args ); } }