コード例 #1
0
        /// <summary>
        /// Fires <see cref="Error"/>
        /// </summary>
        /// <param name="e"></param>
        protected override void OnError( Exception e )
        {
            // base throw not important
            //base.OnError( e );

            QuickIOTransferFileCopyErrorEventArgs args = null;
            if ( Error != null )
            {
                args = new QuickIOTransferFileCopyErrorEventArgs( this, Source, Target, e );
                Error( this, args );
            }

            if ( Observer != null )
            {
                if ( args == null )
                {
                    args = new QuickIOTransferFileCopyErrorEventArgs( this, Source, Target, e );
                }
                Observer.OnFileCopyError( args );
            }
        }
コード例 #2
0
 /// <summary>
 /// Fire <see cref="FileCopyError"/>
 /// </summary>
 /// <param name="args">Holds further event information</param>
 public virtual void OnFileCopyError( QuickIOTransferFileCopyErrorEventArgs args )
 {
     if ( FileCopyError != null )
     {
         FileCopyError( this, args );
     }
 }