Exemplo n.º 1
0
        /// <summary>
        /// Fire <see cref="Started"/>
        /// </summary>
        private void OnCopyStarted( Int64 totalBytes )
        {
            QuickIOTransferFileCopyStartedEventArgs args = null;
            if ( Started != null )
            {
                args = new QuickIOTransferFileCopyStartedEventArgs( this, Source, Target, totalBytes );
                Started( this, args );
            }

            if ( Observer != null )
            {
                if ( args == null )
                {
                    args = new QuickIOTransferFileCopyStartedEventArgs( this, Source, Target, totalBytes );
                }
                Observer.OnFileCopyStarted( args );
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Fire <see cref="FileCopyStarted"/>
 /// </summary>
 /// <param name="args">Holds further event information</param>
 public virtual void OnFileCopyStarted( QuickIOTransferFileCopyStartedEventArgs args )
 {
     if ( FileCopyStarted != null )
     {
         FileCopyStarted( this, args );
     }
 }