|
using System.Collections.Generic;
namespace RZWScreenSaver{
public class FolderCollectionSet : List<FolderCollection>{
public FolderCollection Default{
get{
if (Count == 0){
// add default
Add(new FolderCollection());
selectedIndex = 0;
}
return this[selectedIndex];
}
}
public int SelectedIndex{
get { return selectedIndex; }
set { selectedIndex = (value < 0 || value >= Count) ? 0 : value; }
}
public FolderCollectionSet Clone(){
return (FolderCollectionSet) MemberwiseClone();
}
int selectedIndex;
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.