예제 #1
0
        /// <summary>
        /// Fire <see cref="Finished"/>
        /// </summary>
        private void OnCopyFinished( Int64 totalBytes )
        {
            QuickIOTransferFileCopyFinishedEventArgs args = null;
            if ( Finished != null )
            {
                args = new QuickIOTransferFileCopyFinishedEventArgs( this, Source, Target, totalBytes, ( DateTime ) TransferStarted );
                Finished( this, args );
            }

            if ( Observer != null )
            {
                if ( args == null )
                {
                    args = new QuickIOTransferFileCopyFinishedEventArgs( this, Source, Target, totalBytes, ( DateTime ) TransferStarted );
                }
                Observer.OnFileCopyFinished( args );
            }
        }
예제 #2
0
 /// <summary>
 /// Fire <see cref="FileCopyFinished"/>
 /// </summary>
 /// <param name="args">Holds further event information</param>
 public virtual void OnFileCopyFinished( QuickIOTransferFileCopyFinishedEventArgs args )
 {
     if ( FileCopyFinished != null )
     {
         FileCopyFinished( this, args );
     }
 }