namespace UIWidgets
{
///
/// FileSystem entry.
///
public class FileSystemEntry
{
///
/// Full name.
///
public string FullName
{
get;
protected set;
}
///
/// Name to display.
///
public string DisplayName
{
get;
protected set;
}
///
/// Is entry is directory?
///
public bool IsDirectory
{
get;
protected set;
}
///
/// is entry is file?
///
public bool IsFile
{
get;
protected set;
}
///
/// Initializes a new instance of the class.
///
/// Full name.
/// Name to display.
/// Entry is file.
public FileSystemEntry(string fullName, string displayName, bool isFile)
{
FullName = fullName;
DisplayName = displayName;
IsDirectory = !isFile;
IsFile = isFile;
}
///
/// Convert instance to string.
///
/// String.
public override string ToString()
{
return FullName;
}
}
}