/// <summary>
        /// Fires <see cref="Finished"/>
        /// </summary>
        private void OnCreationFinished( Int64 totalBytes )
        {
            QuickIOTransferFileCreationFinishedEventArgs args = null;
            if ( Finished != null )
            {
                args = new QuickIOTransferFileCreationFinishedEventArgs( this, TargetFullName, totalBytes, ( DateTime ) TransferStarted );
                Finished( this, args );
            }

            if ( Observer != null )
            {
                if ( args == null )
                {
                    args = new QuickIOTransferFileCreationFinishedEventArgs( this, TargetFullName, totalBytes, ( DateTime ) TransferStarted );
                }
                Observer.OnFileCreationFinished( args );
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Fire <see cref="FileCopyFinished"/>
 /// </summary>
 /// <param name="args">Holds further event information</param>
 public virtual void OnFileCreationFinished( QuickIOTransferFileCreationFinishedEventArgs args )
 {
     if ( FileCreationFinished != null )
     {
         FileCreationFinished( this, args );
     }
 }