public override void getFilesInDirectory( )//string directory ) { base.getFilesInDirectory( ); selected = null; FileHeader[] fileBuffer = files; files = new FileHeader[ files.Length + 1 ]; fileBuffer.CopyTo( files, 1 ); files[ 0 ] = new NewFileHeader(); /* for ( int i = 1; i < files.Length; i++ ) if ( files[ i ].path == lastPath ) { selected = files[ i ]; if ( i > maxOnScreen ) posAtTop = i - maxOnScreen; break; } if ( selected == null )*/ selected = files[ 0 ]; }
public override void getFilesInDirectory( ) //string directory ) { base.getFilesInDirectory( ); selected = null; FileHeader[] fileBuffer = files; files = new FileHeader[files.Length + 1]; fileBuffer.CopyTo(files, 1); files[0] = new NewFileHeader(); /* for ( int i = 1; i < files.Length; i++ ) * if ( files[ i ].path == lastPath ) * { * selected = files[ i ]; * * if ( i > maxOnScreen ) * posAtTop = i - maxOnScreen; * * break; * } * * if ( selected == null )*/ selected = files[0]; }