From d33c19b3ac6803de4b5c8d475832efef131c1a45 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Wed, 30 Dec 2020 15:11:34 +0000 Subject: Revert "Hope it is fine" --- .../Visual_Studio/Tango.FileSystem/DriveItem.cs | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Software/Visual_Studio/Tango.FileSystem/DriveItem.cs (limited to 'Software/Visual_Studio/Tango.FileSystem/DriveItem.cs') diff --git a/Software/Visual_Studio/Tango.FileSystem/DriveItem.cs b/Software/Visual_Studio/Tango.FileSystem/DriveItem.cs new file mode 100644 index 000000000..9c4494fec --- /dev/null +++ b/Software/Visual_Studio/Tango.FileSystem/DriveItem.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.FileSystem +{ + public class DriveItem : FileSystemItem, IFileSystemContainer + { + public ObservableCollection Items { get; set; } + + public String Label { get; set; } + + public DriveType DriveType { get; set; } + + public DriveItem() + { + Type = FileSystemItemType.Drive; + Items = new ObservableCollection(); + } + + protected override string OnGetName() + { + return Label; + } + + public override string Description + { + get + { + return DriveType.ToString().ToTitle(); + } + } + } +} -- cgit v1.3.1