public override object GetIconHandle(bool open)
{
int index = this.ImageIndex;
if(NoImage == index)
{
// There is no image for this file; let the base class handle this case.
return base.GetIconHandle(open);
}
// Return the handle for the image.
return this.ProjectManager.ImageHandler.GetIconHandle(index);
}