using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Runtime.InteropServices;
namespace SEDMS.ClientMain.Controls.ShellTreeView
{
/**/
/// <summary>
/// Provides static methods to read system icons for both folders and files.
/// </summary>
/// <example>
/// <code>IconReader.GetFileIcon("c://general.xls");</code>
/// </example>
public class IconReader
{
/**/
/// <summary>
/// Options to specify the size of icons to return.
/// </summary>
public enum IconSize
{
/**/
/// <summary>
/// Specify large icon - 32 pixels by 32 pixels.
/// </summary>
Large = 0,
/**/
/// <summary>
/// Specify small icon - 16 pixels by 16 pixels.
/// </summary>
Small = 1
}
/**/
/// <summary>
/// Options to specify whether folders should be in the open or closed state.
/// </summary>
public enum FolderType
{
/**/
/// <summary>
/// Specify open folder.
/// </summary>
Open = 0,
/**/
/// <summary>
/// Specify closed folder.
/// </summary>
Closed = 1
}
/**/
/// <summary>
/// Returns an icon for a given file - indicated by the name parameter.
/// </summary>
/// <param name="name">Pathname for file.</param>
/// <param name="size">Large or small</param>
/// <param name="linkOverlay">Whether to include the link icon</param>
/// <returns>System.Drawing.Icon</returns>
public static System.Drawi