C# and WPF tutorial files

This commit is contained in:
Unknown
2017-05-29 21:01:07 +01:00
parent dfdd754362
commit 1cb838df3a
107 changed files with 5760 additions and 0 deletions

View File

@ -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); } }
}
}

View File

@ -0,0 +1,21 @@
namespace WpfTreeView
{
/// <summary>
/// The type of a directory item
/// </summary>
public enum DirectoryItemType
{
/// <summary>
/// A logical drive
/// </summary>
Drive,
/// <summary>
/// A phyiscal file
/// </summary>
File,
/// <summary>
/// A folder
/// </summary>
Folder
}
}