/// <summary>
        /// Fires <see cref="DirectoryCreated"/>
        /// </summary>
        private void OnDirectoryCreated( String directoryPath )
        {
            QuickIOTransferDirectoryCreatedEventArgs args = null;
            if ( DirectoryCreated != null )
            {
                args = new QuickIOTransferDirectoryCreatedEventArgs( this, directoryPath );
                DirectoryCreated( this, args );
            }

            if ( Observer != null )
            {
                if ( args == null )
                {
                    args = new QuickIOTransferDirectoryCreatedEventArgs( this, directoryPath );
                }
                Observer.OnDirectoryCreated( args );
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Fire <see cref="DirectoryCreated"/>
 /// </summary>
 /// <param name="args">Holds further event information</param>
 public virtual void OnDirectoryCreated( QuickIOTransferDirectoryCreatedEventArgs args )
 {
     if ( DirectoryCreated != null )
     {
         DirectoryCreated( this, args );
     }
 }