1
// ****************************************************************
2
// Copyright 2007, Charlie Poole
3
// This is free software licensed under the NUnit license. You may
4
// obtain a copy of the license at http://nunit.org
5
// ****************************************************************
8
using System.Collections;
13
/// Summary description for RecentFilesCollection.
15
public class RecentFilesCollection : ReadOnlyCollectionBase
17
public void Add( RecentFileEntry entry )
19
InnerList.Add( entry );
22
public void Insert( int index, RecentFileEntry entry )
24
InnerList.Insert( index, entry );
27
public void Remove( string fileName )
29
int index = IndexOf( fileName );
34
public void RemoveAt( int index )
36
InnerList.RemoveAt( index );
39
public int IndexOf( string fileName )
41
for( int index = 0; index < InnerList.Count; index++ )
42
if ( this[index].Path == fileName )
47
public RecentFileEntry this[int index]
49
get { return (RecentFileEntry)InnerList[index]; }
1
// ****************************************************************
2
// Copyright 2007, Charlie Poole
3
// This is free software licensed under the NUnit license. You may
4
// obtain a copy of the license at http://nunit.org
5
// ****************************************************************
8
using System.Collections;
13
/// Summary description for RecentFilesCollection.
15
public class RecentFilesCollection : ReadOnlyCollectionBase
17
public void Add( RecentFileEntry entry )
19
InnerList.Add( entry );
22
public void Insert( int index, RecentFileEntry entry )
24
InnerList.Insert( index, entry );
27
public void Remove( string fileName )
29
int index = IndexOf( fileName );
34
public void RemoveAt( int index )
36
InnerList.RemoveAt( index );
39
public int IndexOf( string fileName )
41
for( int index = 0; index < InnerList.Count; index++ )
42
if ( this[index].Path == fileName )
47
public RecentFileEntry this[int index]
49
get { return (RecentFileEntry)InnerList[index]; }