C# and WPF tutorial files
This commit is contained in:
@ -0,0 +1,23 @@
|
||||
namespace WpfTreeView
|
||||
{
|
||||
/// <summary>
|
||||
/// Information about a directory item such as a drive, a file or a folder
|
||||
/// </summary>
|
||||
public class DirectoryItem
|
||||
{
|
||||
/// <summary>
|
||||
/// The type of this item
|
||||
/// </summary>
|
||||
public DirectoryItemType Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The absolute path to this item
|
||||
/// </summary>
|
||||
public string FullPath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The name of this directory item
|
||||
/// </summary>
|
||||
public string Name { get { return this.Type == DirectoryItemType.Drive ? this.FullPath : DirectoryStructure.GetFileFolderName(this.FullPath); } }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user